Upgrade some dependencies and librqbit to 4.0.0-beta.1
This commit is contained in:
parent
143bdea498
commit
af1facb171
3 changed files with 178 additions and 42 deletions
|
|
@ -261,10 +261,12 @@ impl HttpApi {
|
|||
.into_make_service();
|
||||
|
||||
info!("starting HTTP server on {}", addr);
|
||||
axum::Server::try_bind(&addr)
|
||||
.with_context(|| format!("error binding to {addr}"))?
|
||||
.serve(app)
|
||||
.await?;
|
||||
|
||||
use tokio::net::TcpListener;
|
||||
let listener = TcpListener::bind(&addr)
|
||||
.await
|
||||
.with_context(|| format!("error binding to {addr}"))?;
|
||||
axum::serve(listener, app).await?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue