From 2b0f3aec1826913df4ccd034b38d68bf40c491b1 Mon Sep 17 00:00:00 2001 From: htrefil <8711792+htrefil@users.noreply.github.com> Date: Fri, 30 Oct 2020 17:41:12 +0100 Subject: [PATCH] Buffer client reads --- client/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/main.rs b/client/src/main.rs index 81a58ac..f1665d1 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -9,6 +9,7 @@ use std::path::{Path, PathBuf}; use std::process; use structopt::StructOpt; use tokio::fs; +use tokio::io::BufReader; use tokio::net::TcpStream; use tokio_native_tls::native_tls::{Certificate, TlsConnector}; @@ -27,6 +28,7 @@ async fn run(server: &str, port: u16, certificate_path: &Path) -> Result