Closed scragg0x closed 3 years ago
Not sure if this is the same issue but when I pass RedisClient
from node-redis into koa-ratelimit's db
, an error occurs Cannot read property '1' of undefined
Is this library only to be used with ioredis?
same issue doesn't work with node-redis
.
I open a PR in async-ratelimiter
here. Some time and everything will be fine.
Hi guys, I fixed the missing behave in async-ratelimiter and now everything work just I wait @niftylettuce to merge my PR #62 and everything done 🎉.
v5.0.1 released to npm
The old
ratelimiter
library has anioredis
check:but
async-ratelimiter
does not.This will cause erroneous 429s to occur with the latest version of
koa-ratelimit
for people using the regular redis library. Please list this as a breaking change.https://github.com/microlinkhq/async-ratelimiter/issues/22