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

fix(#1157): update request rate limiting #1223

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Clm-Roig
Copy link
Member

@Clm-Roig Clm-Roig commented Jul 19, 2023

Close #1157

  • Rate limiting is not using database rights anymore.
  • Added limiting for leaders.

A lot of code is copy / pasted. I tried to refactor it but I'm not satisfied enough. How can I improve it ?

EDIT: Ok I found a way. The package allows the max (number of requests) value to be computed using a function (instead of a number). I will deduce the rate limiting depending on the user groups.

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

Successfully merging this pull request may close these issues.

[API] Limiter le nombre de requêtes par unité de temps
1 participant