diff --git a/src/lib/web/mod.rs b/src/lib/web/mod.rs index 0215b05..7571e7e 100644 --- a/src/lib/web/mod.rs +++ b/src/lib/web/mod.rs @@ -109,7 +109,7 @@ async fn websocket_connection(socket: WebSocket, state: AppState) { } async fn log_websocket_handler(ws: WebSocketUpgrade) -> Response { - ws.on_upgrade(|socket| log_websocket_connection(socket)) + ws.on_upgrade(log_websocket_connection) } #[instrument(level = "debug", skip_all)]