From 7011a797eef378dc15d5b700360bf219fe11b2f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Wed, 13 May 2020 19:40:49 +0200 Subject: [PATCH] Update TODO; clean up code --- TODO.md | 2 ++ aquatic_ws/src/lib/network/mod.rs | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index f6c33b5..95e7c25 100644 --- a/TODO.md +++ b/TODO.md @@ -4,6 +4,8 @@ * network * test tls! * handle tls certificate parse errors etc better + * parse once only + * exit with error message, not with panic * send/recv buffer size config * limit ws message sizes? * test diff --git a/aquatic_ws/src/lib/network/mod.rs b/aquatic_ws/src/lib/network/mod.rs index 03bc2fc..f3c7322 100644 --- a/aquatic_ws/src/lib/network/mod.rs +++ b/aquatic_ws/src/lib/network/mod.rs @@ -135,7 +135,6 @@ fn accept_new_streams( } - /// On the stream given by poll_token, get TLS (if requested) and tungstenite /// up and running, then read messages and pass on through channel. pub fn run_handshakes_and_read_messages(