From 2fbb1bb4b6e02e3b9eaec91469d65706eead6e0a Mon Sep 17 00:00:00 2001 From: Gregor Reitzenstein Date: Fri, 20 Nov 2020 15:54:53 +0100 Subject: [PATCH] Whoops, forgot the handshake --- src/connection.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connection.rs b/src/connection.rs index 78575b1..1974e1b 100644 --- a/src/connection.rs +++ b/src/connection.rs @@ -57,8 +57,8 @@ async fn handshake(log: &Logger, stream: &mut TcpStream) -> Result<()> { } } -pub async fn handle_connection(log: Logger, stream: TcpStream, db: Databases) -> Result<()> { - //handshake(&log, &mut stream).await?; +pub async fn handle_connection(log: Logger, mut stream: TcpStream, db: Databases) -> Result<()> { + handshake(&log, &mut stream).await?; info!(log, "New connection from on {:?}", stream); let session = Arc::new(Session::new(log));