fastify / fastify-rate-limit

A low overhead rate limiter for your routes
MIT License
477 stars 66 forks source link

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

Closed gurgunday closed 6 months ago

gurgunday commented 6 months ago

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

gurgunday commented 6 months ago

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

gurgunday commented 6 months ago

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