From b9b733f271d56b27cb1ddf6e2671b0dce71bf5b3 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sat, 24 Dec 2022 20:09:01 -0800 Subject: [PATCH] fix: fixing unblocked stream in main --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1f2276b..fa97280 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,7 +87,9 @@ fn main() { } }; - socket.write_message(Message::Text(message_string)).unwrap(); + socket + .write_message(Message::Text(message_string)) + .expect("Error sending message"); let server_message = socket.read_message().expect("Error reading message"); let server_response: message_types::ServerResponse =