summaryrefslogtreecommitdiffhomepage
path: root/lib/dispatch/adapter/rate_limiter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dispatch/adapter/rate_limiter.rb')
-rw-r--r--lib/dispatch/adapter/rate_limiter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dispatch/adapter/rate_limiter.rb b/lib/dispatch/adapter/rate_limiter.rb
index 8d0789e..1b05582 100644
--- a/lib/dispatch/adapter/rate_limiter.rb
+++ b/lib/dispatch/adapter/rate_limiter.rb
@@ -90,7 +90,7 @@ module Dispatch
def compute_wait(state, now)
cooldown_wait = compute_cooldown_wait(state, now)
window_wait = compute_window_wait(state, now)
- [cooldown_wait, window_wait].max
+ [ cooldown_wait, window_wait ].max
end
def compute_cooldown_wait(state, now)