diff options
author | FxQnLr <[email protected]> | 2023-10-29 21:09:46 +0100 |
---|---|---|
committer | FxQnLr <[email protected]> | 2023-10-29 21:09:46 +0100 |
commit | dd303dc41e4d500e48760f79351720cc2c1c9ffe (patch) | |
tree | b730a1da1e0e58e12494bbab88076d403f4ccd97 /src/routes/status.rs | |
parent | 84c32953ae5f52be44af4b48381747f55cb04f4a (diff) | |
download | webol-dd303dc41e4d500e48760f79351720cc2c1c9ffe.tar webol-dd303dc41e4d500e48760f79351720cc2c1c9ffe.tar.gz webol-dd303dc41e4d500e48760f79351720cc2c1c9ffe.zip |
add ip to database and use for ping, remove arc from pingmap
Diffstat (limited to 'src/routes/status.rs')
-rw-r--r-- | src/routes/status.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/status.rs b/src/routes/status.rs index 4a5ec67..45f3e51 100644 --- a/src/routes/status.rs +++ b/src/routes/status.rs | |||
@@ -6,5 +6,5 @@ use crate::services::ping::status_websocket; | |||
6 | 6 | ||
7 | #[axum_macros::debug_handler] | 7 | #[axum_macros::debug_handler] |
8 | pub async fn status(State(state): State<Arc<AppState>>, ws: WebSocketUpgrade) -> Response { | 8 | pub async fn status(State(state): State<Arc<AppState>>, ws: WebSocketUpgrade) -> Response { |
9 | ws.on_upgrade(move |socket| status_websocket(socket, state.ping_send.clone(), state.ping_map.clone())) | 9 | ws.on_upgrade(move |socket| status_websocket(socket, state)) |
10 | } \ No newline at end of file | 10 | } \ No newline at end of file |