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(
|
return Err(handle_anyhow_error(
|
||||||
Some(StatusCode::TOO_MANY_REQUESTS),
|
Some(StatusCode::TOO_MANY_REQUESTS),
|
||||||
None,
|
None,
|
||||||
// TODO: include the ip here
|
anyhow::anyhow!(format!("too many requests from this ip: {}", ip)),
|
||||||
anyhow::anyhow!("too many requests from this ip"),
|
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.into_response());
|
.into_response());
|
||||||
|
Loading…
Reference in New Issue
Block a user