koajs / ratelimit

Rate limiter middleware
MIT License
485 stars 57 forks source link

Return a negative time, such as `Rate limit exceeded, retry in -${time}` #48

Closed wang-wen-kun closed 5 years ago

wang-wen-kun commented 5 years ago

The value of the "const delta = (limit.reset * 1000) - Date.now() | 0" may be less than 0 ?