-
Notifications
You must be signed in to change notification settings - Fork 63
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
quota apply w/ weight == 0 actually applies 1 #33
Comments
Just stumbled across this. I need to know stats without consuming anything. Now, I can apply -1 followed by 1, but that's really ugly. Are there any better workarounds? EDIT: Actually, sending -1 seems to reset the remaining time, so this doesn't work either. |
Hi @freezy, Sorry you're hitting this. Unfortunately, changing the default behavior could be a breaking change for some clients, so nothing had been decided on this yet. Could you let me know a little bit more about what you're doing? What provider? What quota settings? Thanks, Scott |
Well, I'm about to add a status page for the users so they can see how many hits they have left for the current time window and how long it lasts. So I just need to query the data without touching the stats. I'm using Another way I could imagine would be querying Redis myself, but then that'll break when you guys change your internal API. |
I agree, it's ugly. Unfortunately, I can't offer a better solution at this point. |
The text was updated successfully, but these errors were encountered: