From: Dessalines Date: Fri, 30 Aug 2019 20:33:20 +0000 (-0700) Subject: Fixing crash on unknown op type. X-Git-Url: http://these/git/readmes/%7B%60https:/%24%7Bi.domain%7D%60%7D?a=commitdiff_plain;h=ed5043cd84bd4c05290cbbc5be319d48b9f09307;p=lemmy.git Fixing crash on unknown op type. - Fixes #251 --- diff --git a/server/src/websocket/server.rs b/server/src/websocket/server.rs index b4cbce3a..900c7b41 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