Skip to content

Commit

Permalink
Unique error messages for 2 different rate limit scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinquaXD committed Apr 29, 2022
1 parent 508f656 commit 67e496f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/shared/src/http_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl RateLimiter {
let times_rate_limited = match self.strategy().times_rate_limited(Instant::now()) {
None => {
tracing::warn!("dropping request because API is currently rate limited");
anyhow::bail!("rate limited");
anyhow::bail!("backing off rate limit");
}
Some(times_rate_limited) => times_rate_limited,
};
Expand Down

0 comments on commit 67e496f

Please sign in to comment.