mirror of https://github.com/tokio-rs/axum
Ignore error in TLS example
This commit is contained in:
parent
dd0c345040
commit
f083c3e97e
|
@ -41,7 +41,7 @@ async fn main() {
|
|||
|
||||
tokio::spawn(async move {
|
||||
if let Ok(stream) = acceptor.accept(stream).await {
|
||||
Http::new().serve_connection(stream, app).await.unwrap();
|
||||
let _ = Http::new().serve_connection(stream, app).await;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue