diff --git a/src/main.rs b/src/main.rs index 3eac610..fbebeff 100644 --- a/src/main.rs +++ b/src/main.rs @@ -126,9 +126,9 @@ async fn main() -> Result<(), Box> { .route("/websocket", get(websocket_handler)) .with_state(app_state); - let listener = tokio::net::TcpListener::bind("0.0.0.0:3030").await.unwrap(); - tracing::debug!("listening on {}", listener.local_addr().unwrap()); - axum::serve(listener, app).await.unwrap(); + let listener = tokio::net::TcpListener::bind("0.0.0.0:3030").await?; + tracing::debug!("listening on {}", listener.local_addr()?); + axum::serve(listener, app).await?; Ok(()) }