Skip to content

Commit 2582dbe

Browse files
committed
fix start-web-server with async storage
1 parent c8154ee commit 2582dbe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/web/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,10 @@ pub fn start_web_server(addr: Option<SocketAddr>, context: &dyn Context) -> Resu
363363
context.storage()?;
364364
context.repository_stats_updater()?;
365365

366+
let app = build_axum_app(context, template_data)?.into_make_service();
366367
context.runtime()?.block_on(async {
367368
axum::Server::bind(&axum_addr)
368-
.serve(build_axum_app(context, template_data)?.into_make_service())
369+
.serve(app)
369370
.with_graceful_shutdown(shutdown_signal())
370371
.await?;
371372
Ok::<(), Error>(())

0 commit comments

Comments
 (0)