GraphQL-Gate icon indicating copy to clipboard operation
GraphQL-Gate copied to clipboard

Add parameter to set token bucket refill time, not just refill rate.

Open evanmcneely opened this issue 3 years ago • 0 comments

The token bucket parameter refillRate is being used to set the bucket refill amount for every 1 second. Add a parameter refillFrequency to adjust to time between refills other than 1 second. Maybe it defaults to 1 second and maybe the parameter refillRate needs to be changed to refillAmount. The end goal is to be able to configure the algorithm to refill at a rate of 10 tokens a minute, for example.

evanmcneely avatar May 28 '22 23:05 evanmcneely