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

Separate out Check And Cell Consumption #211

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

zhixinwen
Copy link

@zhixinwen zhixinwen commented Oct 25, 2023

This resolves #152.

They should work with existing APIs.
check_only methods are for checking part.
consume methods are for "billing" part.

I only implemented the directed rate limiter. If this idea is fine with @antifuchs I can follow up with keyed rate limiter.

@TheWaWaR
Copy link

@antifuchs
Do you have any thoughts on this? Currently this is no method measure remaining capacity separately.

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.

plans to separate check with token operation?
2 participants