From 0b6bd050a0e53a8214016081e05260ec8541baf0 Mon Sep 17 00:00:00 2001 From: Oscar Beaumont Date: Wed, 24 Apr 2024 18:09:18 +0800 Subject: [PATCH] Fix main (#2381) * fix * fix --- apps/server/src/main.rs | 2 +- core/src/api/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/src/main.rs b/apps/server/src/main.rs index 2da2a6193..f7fb93bae 100644 --- a/apps/server/src/main.rs +++ b/apps/server/src/main.rs @@ -245,7 +245,7 @@ async fn main() { let app = app .route("/", get(|| async { "Spacedrive Server!" })) .fallback(|| async { "404 Not Found: We're past the event horizon..." }) - .layer(middleware::from_fn_with_state(state, basic_auth)); + .layer(axum::middleware::from_fn_with_state(state, basic_auth)); let mut addr = "[::]:8080".parse::().unwrap(); // This listens on IPv6 and IPv4 addr.set_port(port); diff --git a/core/src/api/mod.rs b/core/src/api/mod.rs index cf55c0ce4..dbbf74f2d 100644 --- a/core/src/api/mod.rs +++ b/core/src/api/mod.rs @@ -1,7 +1,7 @@ use crate::{ invalidate_query, node::{ - config::{NodeConfig, NodeConfigP2P, NodePreferences, P2PDiscoveryState}, + config::{NodeConfig, NodeConfigP2P, NodePreferences}, get_hardware_model_name, HardwareModel, }, old_job::JobProgressEvent,