mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Remove io::Result from serve output type
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