?
This commit is contained in:
parent
5eeefa9d8c
commit
f9b6e57503
1 changed files with 3 additions and 3 deletions
|
@ -126,9 +126,9 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
||||||
.route("/websocket", get(websocket_handler))
|
.route("/websocket", get(websocket_handler))
|
||||||
.with_state(app_state);
|
.with_state(app_state);
|
||||||
|
|
||||||
let listener = tokio::net::TcpListener::bind("0.0.0.0:3030").await.unwrap();
|
let listener = tokio::net::TcpListener::bind("0.0.0.0:3030").await?;
|
||||||
tracing::debug!("listening on {}", listener.local_addr().unwrap());
|
tracing::debug!("listening on {}", listener.local_addr()?);
|
||||||
axum::serve(listener, app).await.unwrap();
|
axum::serve(listener, app).await?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue