fastify / fastify-rate-limit

A low overhead rate limiter for your routes
MIT License
505 stars 72 forks source link

fix: remove unnecessary property `timeWindow` from RedisStore and LocalStore #363

Closed gurgunday closed 9 months ago

gurgunday commented 9 months ago

We no longer need to have a timeWindow property since it will be passed dynamically to the incr method

gurgunday commented 9 months ago

Note: this change won't affect custom stores since to them we pass all the options anyway

gurgunday commented 9 months ago

Here: https://github.com/fastify/fastify-rate-limit/pull/360