mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-26 00:00:23 +02:00
Fix return types of serve futures (#3601)
This commit is contained in:
@@ -48,8 +48,7 @@ async fn main() {
|
||||
// Run the server with graceful shutdown
|
||||
axum::serve(listener, app)
|
||||
.with_graceful_shutdown(shutdown_signal())
|
||||
.await
|
||||
.unwrap();
|
||||
.await;
|
||||
}
|
||||
|
||||
async fn shutdown_signal() {
|
||||
|
||||
Reference in New Issue
Block a user