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

stop request if we hit 429 #9

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

Conversation

rebolyte
Copy link

@rebolyte rebolyte commented May 5, 2023

Hey, thanks for putting up this little lib. 💪

One change I needed - currently the middleware continues to allow the rest of the request handlers even if the request should be rate-limited. Small update here is to not call next() if we're at the limit.

@jwerre
Copy link
Owner

jwerre commented May 9, 2023

Couldn't you just lower your limit by one?

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.

2 participants