forked from KokaKiwi/boitalettres
fix
This commit is contained in:
parent
d71d40d582
commit
ee34bec71a
1 changed files with 1 additions and 3 deletions
|
@ -22,9 +22,7 @@ async fn main() -> eyre::Result<()> {
|
||||||
let make_service = tower::service_fn(|addr: &AddrStream| {
|
let make_service = tower::service_fn(|addr: &AddrStream| {
|
||||||
tracing::debug!(remote_addr = %addr.remote_addr, local_addr = %addr.local_addr, "accept");
|
tracing::debug!(remote_addr = %addr.remote_addr, local_addr = %addr.local_addr, "accept");
|
||||||
|
|
||||||
let service = tower::ServiceBuilder::new()
|
let service = tower::ServiceBuilder::new().service_fn(handle_req);
|
||||||
.buffer(16)
|
|
||||||
.service_fn(handle_req);
|
|
||||||
|
|
||||||
futures::future::ok::<_, std::convert::Infallible>(service)
|
futures::future::ok::<_, std::convert::Infallible>(service)
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue