Closed rickhuizinga closed 11 years ago
The getTokensRemaining function was returning a stale token count.
Needs to call tokenBucket.drip() to update the token count so that it is current at the time the count was requested.
Good catch, thanks!
Just published this to npm as version 1.0.4
The getTokensRemaining function was returning a stale token count.
Needs to call tokenBucket.drip() to update the token count so that it is current at the time the count was requested.