From 99319800fcc2f72155874ed75105096142ca8760 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 30 Aug 2019 13:33:20 -0700 Subject: [PATCH] Fixing crash on unknown op type. - Fixes #251 --- server/src/websocket/server.rs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/server/src/websocket/server.rs b/server/src/websocket/server.rs index b4cbce3af..900c7b411 100644 --- a/server/src/websocket/server.rs +++ b/server/src/websocket/server.rs @@ -233,14 +233,6 @@ impl Handler for ChatServer { }); } - // for (k,v) in &self.rate_limits { - // println!("{}: {:?}", k,v); - // } - - // auto join session to Main room - // self.rooms.get_mut(&"Main".to_owned()).unwrap().insert(id); - - // send id back id } } @@ -285,7 +277,10 @@ fn parse_json_message(chat: &mut ChatServer, msg: StandardMessage) -> Result