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 out-of-order timestamp bug with ratelimit #14

Merged
merged 1 commit into from
Nov 22, 2022

Conversation

qix
Copy link
Contributor

@qix qix commented Nov 22, 2022

Problem

Out of order timestamps could trigger ratelimiter more often that it was specified for

Solution

Don't allow out of order timestamps in ratelimit. If the new timestamp was before the last seen one, just move it up to the last seen one.

Result

Added a test case which now passes

@qix qix merged commit 33deeb8 into sqrl-lang:main Nov 22, 2022
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