-
Notifications
You must be signed in to change notification settings - Fork 49
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
Reset or Clear a Limit #19
Comments
I think this is a useful feature, PR would be more than welcomed! |
@patramsey would you be interested in creating a pull request with the feature you described? I'd be happy to review and merge it. |
Hey, This looks interesting and I also want to learn this repository. Can I solve this issue or is it already solved? |
This is not solved. If you're interested in implementing it please consider making a pull request Thanks! |
I will look into this issue. |
If my understanding is right, For each algo(token Bucket, leaky bucket etc), I need to write another function similar to Limit which resets the state of the backend? |
Right. You will also need to add tests for each of them in a similar way it's done for the Limit() method |
Hello,
It does not appear that this package allows for the reset of a limit, is that correct? I have come across a use case where rate limits need to be reset. A user forgets their password, gets rate limited logging into their account. They successfully reset their password, the previous limit should be cleared so they are allowed to attempt to login again.
Would you consider a PR for this feature?
The text was updated successfully, but these errors were encountered: