not with_connect_info

This commit is contained in:
Bryan Stitt 2022-08-06 06:30:00 +00:00
parent 48d8f3858e
commit 92522c9133

@ -162,7 +162,7 @@ pub async fn run(port: u16, proxy_app: Arc<Web3ProxyApp>) -> anyhow::Result<()>
info!("listening on port {}", port);
// TODO: into_make_service is enough if we always run behind a proxy. make into_make_service_with_connect_info optional?
axum::Server::bind(&addr)
.serve(app.into_make_service_with_connect_info::<SocketAddr>())
.serve(app.into_make_service::<SocketAddr>())
.await
.map_err(Into::into)
}