We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c79df94 commit e436730Copy full SHA for e436730
service/aiproxy/common/rpmlimit/rate-limit.go
@@ -32,7 +32,7 @@ redis.call('ZREMRANGEBYSCORE', over_limit_key, '-inf', cutoff)
32
local count = redis.call('ZCOUNT', key, cutoff, current_time)
33
local over_limit_count = redis.call('ZCOUNT', over_limit_key, cutoff, current_time)
34
35
-if count < max_requests then
+if count <= max_requests then
36
redis.call('ZADD', key, current_time, current_time)
37
redis.call('PEXPIRE', key, window / 1000)
38
count = count + 1
0 commit comments