Update router/src/server.rs

This commit is contained in:
Nicolas Patry 2024-05-28 11:51:41 +02:00 committed by GitHub
parent b759cc337b
commit b8ac9d56df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1686,12 +1686,6 @@ pub async fn run(
axum::serve(listener, app) axum::serve(listener, app)
.with_graceful_shutdown(shutdown_signal()) .with_graceful_shutdown(shutdown_signal())
.await?; .await?;
// axum::Server::bind(&addr)
// .serve(app.into_make_service())
// // Wait until all requests are finished to shut down
// .with_graceful_shutdown(shutdown_signal())
// .await?;
} }
Ok(()) Ok(())
} }