Skip to content

Conversation

@ermolaev
Copy link
Contributor

@ermolaev ermolaev commented Jan 9, 2024

limiter = Kredis.limiter "mylimit", limit: 3, expires_in: 5.seconds
7.times { pp [limiter.poke, limiter.exceeded?] }
[1, false]
[2, false]
[3, true]
[4, true]
[5, true]
[6, true]
[7, true]

Copy link
Member

@jeremy jeremy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, it's >= not >.

@jeremy jeremy merged commit 41b5358 into rails:main Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants