refactor: update dependencies
This commit is contained in:
parent
14602cc5b7
commit
7f7ea80a3d
File diff suppressed because it is too large
Load Diff
|
@ -7,7 +7,7 @@ edition = "2021"
|
|||
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
axum = { version = "0.6", features = ["json"] }
|
||||
axum = { version = "0.7", features = ["json"] }
|
||||
blake3 = { version = "1", features = ["traits-preview"] }
|
||||
chrono = { version = "0.4", features = ["serde"]}
|
||||
mimalloc = "0.1"
|
||||
|
|
|
@ -68,9 +68,8 @@ async fn main() -> Result<()> {
|
|||
pool,
|
||||
}));
|
||||
|
||||
axum::Server::bind(&address)
|
||||
.serve(app.into_make_service())
|
||||
.await?;
|
||||
let listener = tokio::net::TcpListener::bind(&address).await?;
|
||||
axum::serve(listener, app).await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue