Skip to content

Compatbiility of @envelop/rate-limiter with node-redis #2612

@mvantellingen

Description

@mvantellingen

Describe the bug

When using @envelop/rate-limiter with node-redis instead of ioredis it hangs due to a promise not being resolved.

The issue is that node-redis no longer supports callbacks, so the logic to resolve the created promise is not resolved/rejected:

(err: Error | null, obj: any): void => {

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions