diff --git a/src/proto/mod.rs b/src/proto/mod.rs index 14681ac..a37d0cc 100644 --- a/src/proto/mod.rs +++ b/src/proto/mod.rs @@ -213,10 +213,10 @@ pub fn register_user( name: &str, password: &str ) -> Result> { - dbg!(match stream { + match stream { RacStream::WRAC(websocket) => wrac::register_user(websocket, name, password), RacStream::RAC(stream) => rac::register_user(stream, name, password) - }) + } } /// Send message with auth @@ -236,10 +236,10 @@ pub fn send_message_auth( password: &str, message: &str ) -> Result> { - dbg!(match stream { + match stream { RacStream::WRAC(websocket) => wrac::send_message_auth(websocket, name, password, message), RacStream::RAC(stream) => rac::send_message_auth(stream, name, password, message) - }) + } } /// Read messages