fix(flags): panic if serve returns (#31621)

This commit is contained in:
Oliver Browne
2025-04-28 18:00:45 +03:00
committed by GitHub
parent af373a103e
commit 0249e24035

View File

@@ -50,5 +50,6 @@ async fn main() {
let listener = tokio::net::TcpListener::bind(config.address)
.await
.expect("could not bind port");
serve(config, listener, shutdown()).await
serve(config, listener, shutdown()).await;
unreachable!("Server exited unexpectedly");
}