mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
Ignore error in TLS example
This commit is contained in:
@@ -41,7 +41,7 @@ async fn main() {
|
|||||||
|
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
if let Ok(stream) = acceptor.accept(stream).await {
|
if let Ok(stream) = acceptor.accept(stream).await {
|
||||||
Http::new().serve_connection(stream, app).await.unwrap();
|
let _ = Http::new().serve_connection(stream, app).await;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user