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

Unintuitive handling of 0 min and max for jitter backoff #992

Open
ubersan opened this issue Mar 24, 2025 · 0 comments
Open

Unintuitive handling of 0 min and max for jitter backoff #992

ubersan opened this issue Mar 24, 2025 · 0 comments

Comments

@ubersan
Copy link

ubersan commented Mar 24, 2025

Currently 0 min and max wait times for jittered backoff automatically fall back to the defaults, see here: https://github.com/go-resty/resty/blob/v3/retry.go#L82-L87 I think this is quite unintuitive.

Maybe one can argue that jitter with 0 backoff between doesn't make sense, but it would be a convenient way to get a constant delay without needing to set a custom stragegy, i.e. by setting wait time and max wait time both to 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant