sethvargo / go-limiter

A supersonic rate limiting package for Go with HTTP middleware.
Apache License 2.0
555 stars 40 forks source link

drop fill rate, reset on new ticks #30

Closed mikehelmick closed 3 years ago

mikehelmick commented 3 years ago

Fixes #29

In debugging, I noticed the fill rate isn't relevant if we're only assessing it after we've ticked into a new bucket. At that point, the full allocation of the bucket should be available for usage (as is for the first tick).

This doesn't have the effect of spreading out traffic evenly over the bucket.

github-actions[bot] commented 3 years ago

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.