Upgrade some dependencies and librqbit to 4.0.0-beta.1

This commit is contained in:
Igor Katson 2023-12-01 11:56:07 +00:00
parent 143bdea498
commit af1facb171
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
3 changed files with 178 additions and 42 deletions

View file

@ -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(())
}
}