List task command + updated deps
This commit is contained in:
+2
-4
@@ -18,10 +18,8 @@ pub async fn web_server(ctx: Context) {
|
||||
.with_state(ctx);
|
||||
|
||||
println!("Serving bot api on: {}", addr);
|
||||
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();
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user