Update deps

This commit is contained in:
2023-12-10 22:57:49 +01:00
parent 07e308a760
commit 88d62f5c76
3 changed files with 326 additions and 167 deletions

View File

@@ -47,10 +47,8 @@ async fn start_app() {
let addr = SocketAddr::from(([0, 0, 0, 0], 8080));
log::info!("Start webserver...");
axum::Server::bind(&addr)
.serve(app.into_make_service())
.await
.unwrap();
let listener = tokio::net::TcpListener::bind(&addr).await.unwrap();
axum::serve(listener, app).await.unwrap();
log::info!("Webserver shutdown...")
}