Skip to content
This repository has been archived by the owner on Aug 24, 2019. It is now read-only.

Refixed bug that was a bug and now has tests to show it #13

Closed
wants to merge 1 commit into from

Conversation

troya2
Copy link

@troya2 troya2 commented Sep 20, 2015

I was using the latest version of the library and it wasn't working as expected. Calling RateLimit.execute() several times, and most notably, just before the time would normally expire, resets the execution time stored in the dictionary and, thus, the block is not executed. I've updated the test so it passes with this change and fails with the previous code.

…it timer would prevent it from executing. Included passing test that fails if the change is reverted.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant