Skip to content

Commit d80943b

Browse files
committed
add 10ms timeout to SHOULD_RATELIMIT
1 parent 2603ef9 commit d80943b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

aikido_zen/middleware/should_block_request.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def should_block_request():
4949
"remote_address": context.remote_address,
5050
},
5151
receive=True,
52+
timeout_in_sec=(10 / 1000), # 10ms
5253
)
5354
if ratelimit_res["success"] and ratelimit_res["data"]["block"]:
5455
cache.stats.on_rate_limit()

0 commit comments

Comments
 (0)