mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-19 00:00:14 +02:00
Fix return types of serve futures (#3601)
This commit is contained in:
@@ -111,7 +111,5 @@ async fn serve(app: Router, port: u16) {
|
||||
let addr = SocketAddr::from(([127, 0, 0, 1], port));
|
||||
let listener = tokio::net::TcpListener::bind(addr).await.unwrap();
|
||||
tracing::debug!("listening on {}", listener.local_addr().unwrap());
|
||||
axum::serve(listener, app.layer(TraceLayer::new_for_http()))
|
||||
.await
|
||||
.unwrap();
|
||||
axum::serve(listener, app.layer(TraceLayer::new_for_http())).await;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user