Skip to content

Commit

Permalink
refactor(backend): remove debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ravenclaw900 committed Oct 3, 2021
1 parent 1ba4b97 commit 44e786e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/backend/src/sockets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,13 @@ pub async fn socket_handler(socket: warp::ws::WebSocket) {
if data.is_close() {
break;
}
dbg!(&data);
req = serde_json::from_str(data.to_str().unwrap()).unwrap();
data_send.send(req.clone()).unwrap();
println!("sent data {:?}", req);
if req.cmd.is_empty() {
if first_message {
first_message = false;
} else {
quit.swap(true, Relaxed);
println!("sent quit");
}
}
}
Expand All @@ -210,7 +207,6 @@ pub async fn socket_handler(socket: warp::ws::WebSocket) {
))
.await;
while let Ok(message) = data_recv.recv().await {
println!("got msg, {}", message.page);
match message.page.as_str() {
"/" => main_handler(&mut socket_send, &quit_clone).await,
"/process" => {
Expand Down

0 comments on commit 44e786e

Please sign in to comment.