Skip to content

Incorrect token reset in StepUpLeakyTokenBucket #6

@zaus

Description

@zaus

Instead of

tokens = stepTokens;

should it be:

tokens = bucketTokenCapacity;

similar to the StepDownLeakyTokenBucket?

It might just be that I don't really understand the difference or how to use it, but when using the StepUp I always wait when calling throttle.ShouldWait, while the StepDown style will pass on the number of tokens before starting to wait.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions