summaryrefslogtreecommitdiff
path: root/src/routes/start.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2023-11-29 15:48:26 +0100
committerFxQnLr <[email protected]>2023-11-29 15:48:26 +0100
commit6f94a825485b1d622d8ebe88ddf3e2f426d1c69c (patch)
treebabf4a5c1dcb7746185a1c97e0d889df07df20e8 /src/routes/start.rs
parentda6367885d31698464e1bec122e3e673974427c6 (diff)
downloadwebol-6f94a825485b1d622d8ebe88ddf3e2f426d1c69c.tar
webol-6f94a825485b1d622d8ebe88ddf3e2f426d1c69c.tar.gz
webol-6f94a825485b1d622d8ebe88ddf3e2f426d1c69c.zip
update to axum 0.7 and cargo update
Diffstat (limited to 'src/routes/start.rs')
-rw-r--r--src/routes/start.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/start.rs b/src/routes/start.rs
index 1555db3..a206cbd 100644
--- a/src/routes/start.rs
+++ b/src/routes/start.rs
@@ -1,5 +1,5 @@
1use axum::headers::HeaderMap;
2use axum::Json; 1use axum::Json;
2use axum::http::HeaderMap;
3use serde::{Deserialize, Serialize}; 3use serde::{Deserialize, Serialize};
4use std::sync::Arc; 4use std::sync::Arc;
5use axum::extract::State; 5use axum::extract::State;
@@ -60,7 +60,7 @@ pub async fn start(State(state): State<Arc<crate::AppState>>, headers: HeaderMap
60 debug!("init ping service"); 60 debug!("init ping service");
61 state.ping_map.insert(uuid_gen.clone(), PingValue { ip: device.ip.clone(), online: false }); 61 state.ping_map.insert(uuid_gen.clone(), PingValue { ip: device.ip.clone(), online: false });
62 62
63 crate::services::ping::spawn(state.ping_send.clone(), device, uuid_gen.clone(), &state.ping_map, &state.db).await 63 crate::services::ping::spawn(state.ping_send.clone(), device, uuid_gen.clone(), &state.ping_map, &state.db).await;
64 }); 64 });
65 Some(uuid_genc) 65 Some(uuid_genc)
66 } else { None }; 66 } else { None };