Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combining rate limiters #167

Closed
jszwedko opened this issue Feb 10, 2023 · 2 comments
Closed

Combining rate limiters #167

jszwedko opened this issue Feb 10, 2023 · 2 comments

Comments

@jszwedko
Copy link

Hey!

We have a use case in vectordotdev/vector#14280 where it would be useful to have multiple rate limiters apply to the same input stream where if any one of them fails to check we consider it limited. The trick is, if one rate limiter fails to take tokens, we don't want to have consumed tokens from the other rate limiters that have been checked (or we want to readd tokens to the checked rate limiter).

Is there a way to do this that I'm missing? Or would this require some changes to this crate?

@untitaker
Copy link

duplicate of #156

@jszwedko
Copy link
Author

And so it is, thanks @untitaker ! I'll close this one.

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

No branches or pull requests

2 participants