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

feat: update rate limit logic #371

Merged
merged 18 commits into from
Jun 28, 2023
Merged

feat: update rate limit logic #371

merged 18 commits into from
Jun 28, 2023

Conversation

alexey-yarmosh
Copy link
Member

Fixes #364

Scenario:

  • user has 100 credits
  • user does a request with "limit": 200
  • user gets a 429 http error. Number of user credits is unchanged
  • user does a request with "limit": 100
  • user gets a valid 202 http response. Number of user credits is updated to 0 (or to a bigger number if "probesCount" in the response is less than 100).

@MartinKolarik MartinKolarik merged commit 0865df8 into master Jun 28, 2023
2 checks passed
@MartinKolarik MartinKolarik deleted the ratelimit branch June 28, 2023 16:35
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.

Update IP limits logic
3 participants