peterkhayes/rolling-rate-limiter

Bug in setTimeout interval

confused-pv opened this issue · 1 comments

Hi,

options.interval is being converted to microseconds. Which in turn being used in the setTimeout flow.
Which is incorrect as the timeout would run after interval*1000 milliseconds later.

Please let me know till when you can publish it :)

Fixed! Good catch.