From 75180261055b0c51fc96065430ec716612ee5c10 Mon Sep 17 00:00:00 2001 From: Denis Cornehl Date: Mon, 16 Oct 2023 21:08:09 +0200 Subject: [PATCH] fix start-web-server with async storage --- src/web/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/web/mod.rs b/src/web/mod.rs index 703449d0d..c46eaf168 100644 --- a/src/web/mod.rs +++ b/src/web/mod.rs @@ -363,9 +363,10 @@ pub fn start_web_server(addr: Option, context: &dyn Context) -> Resu context.storage()?; context.repository_stats_updater()?; + let app = build_axum_app(context, template_data)?.into_make_service(); context.runtime()?.block_on(async { axum::Server::bind(&axum_addr) - .serve(build_axum_app(context, template_data)?.into_make_service()) + .serve(app) .with_graceful_shutdown(shutdown_signal()) .await?; Ok::<(), Error>(())