Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Written inside the request interface, only one takes effect #38

Open
goophps opened this issue Aug 11, 2023 · 0 comments
Open

Written inside the request interface, only one takes effect #38

goophps opened this issue Aug 11, 2023 · 0 comments

Comments

@goophps
Copy link

goophps commented Aug 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant