Adding IP to the rate limit request line.
This commit is contained in:
parent
dbeb8d8da4
commit
a2db39d5ea
1 changed files with 4 additions and 1 deletions
|
@ -85,7 +85,10 @@ impl RateLimiter {
|
||||||
);
|
);
|
||||||
Err(
|
Err(
|
||||||
APIError {
|
APIError {
|
||||||
message: format!("Too many requests. {} per {} seconds", rate, per),
|
message: format!(
|
||||||
|
"Too many requests. IP: {}, {} per {} seconds",
|
||||||
|
ip, rate, per
|
||||||
|
),
|
||||||
}
|
}
|
||||||
.into(),
|
.into(),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue