From 0eb4039b5e437a220ff4af503343c2d1f57b667e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Fri, 15 May 2020 16:16:03 +0200 Subject: [PATCH] aquatic_ws: network: use HandshakeMachine::new in Connection --- aquatic_ws/src/lib/network/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aquatic_ws/src/lib/network/connection.rs b/aquatic_ws/src/lib/network/connection.rs index 1404e3c..acb99a6 100644 --- a/aquatic_ws/src/lib/network/connection.rs +++ b/aquatic_ws/src/lib/network/connection.rs @@ -229,7 +229,7 @@ impl Connection { ) -> Self { Self { valid_until, - inner: Either::Right(HandshakeMachine::TcpStream(tcp_stream)) + inner: Either::Right(HandshakeMachine::new(tcp_stream)) } }