From 6f94a825485b1d622d8ebe88ddf3e2f426d1c69c Mon Sep 17 00:00:00 2001 From: FxQnLr Date: Wed, 29 Nov 2023 15:48:26 +0100 Subject: update to axum 0.7 and cargo update --- src/routes/start.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/routes/start.rs') 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 @@ -use axum::headers::HeaderMap; use axum::Json; +use axum::http::HeaderMap; use serde::{Deserialize, Serialize}; use std::sync::Arc; use axum::extract::State; @@ -60,7 +60,7 @@ pub async fn start(State(state): State>, headers: HeaderMap debug!("init ping service"); state.ping_map.insert(uuid_gen.clone(), PingValue { ip: device.ip.clone(), online: false }); - crate::services::ping::spawn(state.ping_send.clone(), device, uuid_gen.clone(), &state.ping_map, &state.db).await + crate::services::ping::spawn(state.ping_send.clone(), device, uuid_gen.clone(), &state.ping_map, &state.db).await; }); Some(uuid_genc) } else { None }; -- cgit v1.2.3