Adding IP to the rate limit request line.

This commit is contained in:
Dessalines 2020-07-01 12:52:13 -04:00
parent dbeb8d8da4
commit a2db39d5ea

View file

@ -85,7 +85,10 @@ impl RateLimiter {
);
Err(
APIError {
message: format!("Too many requests. {} per {} seconds", rate, per),
message: format!(
"Too many requests. IP: {}, {} per {} seconds",
ip, rate, per
),
}
.into(),
)