Issue #17 Fix - Only 1 token returned after duration
Issue #17 Fix - Only 1 token returned after duration

in juju/ratelimit: 
NewBucket "fills at the rate of one token every fillInterval", where in NewBucketWithQuantum "quantum tokens are added every fillInterval."

Since throttling limit is configured per fillInterval, it is expected that upon a new fillInterval the bucket would be full again. Therefore adding Quantum tokens each fillInterval instead of only 1 token each fillInterval is the expected behavior.

Please see Issue#17 for details and steps to reproduce.
didip/tollbooth,wallstreetcn/tollbooth