This commit is contained in:
Bryan Stitt 2022-08-06 06:30:52 +00:00
parent 92522c9133
commit 5692b76786

@ -162,7 +162,8 @@ 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::<SocketAddr>())
// .serve(app.into_make_service_with_connect_info::<SocketAddr>())
.serve(app.into_make_service())
.await
.map_err(Into::into)
}