fastapi-limiter icon indicating copy to clipboard operation
fastapi-limiter copied to clipboard

Written inside the request interface, only one takes effect

Open goophps opened this issue 2 years ago • 0 comments

Written inside the request interface, only one takes effect: rate_limiter = RateLimiter(5, seconds=10) await rate_limiter(request, Response())

 rate_limiter2 = RateLimiter(60, hours=1)
 await rate_limiter2(request, Response())

The reason is found because the keys generated in redis are the same

goophps avatar Aug 11 '23 20:08 goophps