This commit is contained in:
Adam 2024-05-02 01:00:47 -04:00
parent 5eeefa9d8c
commit f9b6e57503

View file

@ -126,9 +126,9 @@ async fn main() -> Result<(), Box<dyn Error>> {
.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(())
}