summaryrefslogtreecommitdiff
path: root/exes/ratelimit/src/grpc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exes/ratelimit/src/grpc.rs')
-rw-r--r--exes/ratelimit/src/grpc.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/exes/ratelimit/src/grpc.rs b/exes/ratelimit/src/grpc.rs
index 0819e46..09885c1 100644
--- a/exes/ratelimit/src/grpc.rs
+++ b/exes/ratelimit/src/grpc.rs
@@ -88,7 +88,10 @@ impl Ratelimiter for RLServer {
// If we are globally ratelimited, we lock using the redis lock
// This is using redis because a global ratelimit should be executed in all
// ratelimit workers.
- debug!("global ratelimit headers detected: {}", global.retry_after());
+ debug!(
+ "global ratelimit headers detected: {}",
+ global.retry_after()
+ );
self.global
.lock_for(Duration::from_secs(global.retry_after()))
.await;