This commit is contained in:
Quentin 2022-05-20 16:29:43 +02:00
parent d71d40d582
commit ee34bec71a
Signed by: quentin
GPG key ID: E9602264D639FF68

View file

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