jhurliman / node-rate-limiter

A generic rate limiter for node.js. Useful for API clients, web crawling, or other tasks that need to be throttled
MIT License
1.51k stars 135 forks source link

Fix error with tryRequestTokens #57

Closed mbolis closed 6 years ago

mbolis commented 6 years ago

I found a possible typo in the tryRequestTokens method. Do you agree?

jhurliman commented 6 years ago

Yikes! It looks like that code path is in need of unit test coverage. Thanks for the catch.