-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Do not rate limit in dev #1574
Do not rate limit in dev #1574
Conversation
Generated by 🚫 dangerJS |
@RedSparr0w Would you mind giving this a look? |
Yeah this sounds good, doesn't make sense to rate limit ourselves, Lines 21 to 28 in 09a2ca1
|
That is a great idea! Maybe that would be a simpler way to make this change. |
Hmm, this code doesn't have any tests, though. Maybe it's better to merge the fix I'm confident in. |
# Conflicts: # package.json
I can't seem to hit the rate limit, I've tried setting: this.period = 5000;
this.maxHitsPerPeriod = 10; and also set Even made 2 test using the static badge which ran 3500 times each and went through fine. |
Hmm, did you run the service tests? The static badges aren't rate limited. Not sure whether cached badges would be, either. |
That would probably be why then, just tried it on the static badge. |
@RedSparr0w I've updated this. Would you mind taking it for another spin? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still can't manage to get the server to rate limit no matter what i try, but i can't see this doing any harm.
Since you haven't been able to reproduce this, I think I'll close it until I run into the problem again. |
I ran into a rate limit while running the service tests, which seems not ideal!
I wonder if it would be better to set RATE_LIMIT=true on the server and default to false.