include ip
This commit is contained in:
parent
46107eaa95
commit
863036970b
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user