From 863036970bf44674bbb728f9b63cea6729b83450 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sat, 6 Aug 2022 06:19:28 +0000 Subject: [PATCH] include ip --- web3_proxy/src/frontend/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web3_proxy/src/frontend/mod.rs b/web3_proxy/src/frontend/mod.rs index 495514ef..423d5009 100644 --- a/web3_proxy/src/frontend/mod.rs +++ b/web3_proxy/src/frontend/mod.rs @@ -41,8 +41,7 @@ pub async fn rate_limit_by_ip(app: &Web3ProxyApp, ip: &IpAddr) -> Result<(), imp return Err(handle_anyhow_error( Some(StatusCode::TOO_MANY_REQUESTS), None, - // TODO: include the ip here - anyhow::anyhow!("too many requests from this ip"), + anyhow::anyhow!(format!("too many requests from this ip: {}", ip)), ) .await .into_response());