Skip to content

Commit 916b886

Browse files
Remove debug prints
1 parent f7a4f33 commit 916b886

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ async fn main() -> Result<(), String> {
8484
}
8585

8686
async fn ws_handler(ws: WebSocketUpgrade) -> impl IntoResponse {
87-
println!("WebSocket connection requested");
8887
ws.on_upgrade(handle_socket)
8988
}
9089

@@ -98,8 +97,6 @@ async fn handle_socket(mut socket: WebSocket) {
9897
return;
9998
}
10099

101-
println!("Client connected");
102-
103100
let mut last_connected = true;
104101
loop {
105102
let latest_update = LATEST_UPDATE.read().unwrap().clone();
@@ -126,6 +123,4 @@ async fn handle_socket(mut socket: WebSocket) {
126123
}
127124
tokio::time::sleep(Duration::from_millis(1000)).await;
128125
}
129-
130-
println!("Client disconnected");
131126
}

0 commit comments

Comments
 (0)