diff --git a/hdrop-server/src/server/hdrop_server.rs b/hdrop-server/src/server/hdrop_server.rs index 51a8221..506f2b4 100644 --- a/hdrop-server/src/server/hdrop_server.rs +++ b/hdrop-server/src/server/hdrop_server.rs @@ -184,7 +184,7 @@ impl Server { // Start the server let listener = TcpListener::bind(&addr).await?; - axum::serve(listener, app.into_make_service()) + axum::serve(listener, app) .await .unwrap_or_else(|err| panic!("Server failed to start on {addr}: {err:?}")); diff --git a/hdrop-server/src/server/prometheus_metrics_server.rs b/hdrop-server/src/server/prometheus_metrics_server.rs index 7709014..15affa1 100644 --- a/hdrop-server/src/server/prometheus_metrics_server.rs +++ b/hdrop-server/src/server/prometheus_metrics_server.rs @@ -71,7 +71,7 @@ impl PrometheusMetricsServer { }; // Start the server and log any errors - if let Err(err) = axum::serve(listener, app.into_make_service()).await { + if let Err(err) = axum::serve(listener, app).await { tracing::error!("Prometheus exporter failed to start: {}", err); } }