Skip to content

Conversation

@florian-schunk
Copy link
Contributor

This PR adds a Rate-limiter wrapper, that can add an end-to-end timeout on any rate-limiter.
The wrapper accepts an insuranceLimiter that gets used in case of any error of the wrapped limiter, including timeouts.
The wrapper approach is based on the discussion in #315

@animir animir mentioned this pull request Nov 1, 2025
@animir
Copy link
Owner

animir commented Nov 1, 2025

@florian-schunk Hey, I like the approach you implemented!
There are some comments. Please address them. Thanks.

@animir animir merged commit af3f5d4 into animir:master Nov 9, 2025
7 checks passed
@animir
Copy link
Owner

animir commented Nov 9, 2025

@florian-schunk Hey. I fixed a small block method signature inconsistency and added TS defs.
The PR has been merged and will be released in version 8.2.0

Here is the link to documentation https://github.com/animir/node-rate-limiter-flexible/wiki/RLWrapperTimeouts
Let me know if everything looks good.

Congrats!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants