summaryrefslogtreecommitdiff
path: root/src/routes/start.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2023-11-02 19:44:29 +0100
committerFxQnLr <[email protected]>2023-11-02 19:44:29 +0100
commit5b7302cf9be4e0badd691203e160ca110613e34c (patch)
tree38c4b47ae97742560963e6b2b4cba3eb84bbaf8a /src/routes/start.rs
parentf8f0565c42db7c612ac12b9a58155051e795639a (diff)
downloadwebol-5b7302cf9be4e0badd691203e160ca110613e34c.tar
webol-5b7302cf9be4e0badd691203e160ca110613e34c.tar.gz
webol-5b7302cf9be4e0badd691203e160ca110613e34c.zip
ping timeout and cleanup
Diffstat (limited to 'src/routes/start.rs')
-rw-r--r--src/routes/start.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/routes/start.rs b/src/routes/start.rs
index c2c9378..9cd358b 100644
--- a/src/routes/start.rs
+++ b/src/routes/start.rs
@@ -49,8 +49,6 @@ pub async fn start(State(state): State<Arc<crate::AppState>>, headers: HeaderMap
49 debug!("Init ping service"); 49 debug!("Init ping service");
50 state.ping_map.insert(uuid_gen.clone(), PingValue { ip: device.ip.clone(), online: false }); 50 state.ping_map.insert(uuid_gen.clone(), PingValue { ip: device.ip.clone(), online: false });
51 51
52 warn!("{:?}", state.ping_map);
53
54 crate::services::ping::spawn(state.ping_send.clone(), device.ip, uuid_gen.clone(), &state.ping_map).await 52 crate::services::ping::spawn(state.ping_send.clone(), device.ip, uuid_gen.clone(), &state.ping_map).await
55 }); 53 });
56 Some(uuid_genc) 54 Some(uuid_genc)