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/device.rs | 2 +- src/routes/start.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/routes') diff --git a/src/routes/device.rs b/src/routes/device.rs index 678d117..a3308d4 100644 --- a/src/routes/device.rs +++ b/src/routes/device.rs @@ -1,7 +1,7 @@ use std::sync::Arc; use axum::extract::State; -use axum::headers::HeaderMap; use axum::Json; +use axum::http::HeaderMap; use serde::{Deserialize, Serialize}; use serde_json::{json, Value}; use tracing::{debug, info}; 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