Ignore error in TLS example

This commit is contained in:
David Pedersen 2021-08-17 22:17:04 +02:00
parent dd0c345040
commit f083c3e97e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
});
}