* fix

* fix
This commit is contained in:
Oscar Beaumont 2024-04-24 18:09:18 +08:00 committed by GitHub
parent ae6c49b0ba
commit 0b6bd050a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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::<SocketAddr>().unwrap(); // This listens on IPv6 and IPv4
addr.set_port(port);

View file

@ -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,