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

memory store not updating entries #37

Closed
ammmir opened this issue Jun 8, 2018 · 1 comment
Closed

memory store not updating entries #37

ammmir opened this issue Jun 8, 2018 · 1 comment

Comments

@ammmir
Copy link

ammmir commented Jun 8, 2018

in my testing, the Redis store is working fine, but the in-memory store doesn't seem to be incrementing counters. for example, if i set the following rate:

rate = limiter.Rate{
    Period: 1 * time.Hour,
    Limit:  1000,
}

yields the same counters every time:

< X-Ratelimit-Limit: 1000
< X-Ratelimit-Remaining: 999

any ideas why?

@ammmir
Copy link
Author

ammmir commented Jun 8, 2018

disregard, programming error

@ammmir ammmir closed this as completed Jun 8, 2018
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

1 participant