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

Slow down retries so we keep retrying for more than 10 seconds. #696

Merged
merged 2 commits into from
Feb 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ impl Default for RetryConfig {
Self {
initial_interval: Duration::from_millis(100), // 100 ms wait by default.
randomization_factor: 0.2, // +-20% jitter.
multiplier: 1.5, // each next retry delay will increase by 50%
multiplier: 1.7, // each next retry delay will increase by 70%
max_interval: Duration::from_secs(5), // until it reaches 5 seconds.
max_elapsed_time: Some(Duration::from_secs(10)), // 10 seconds total allocated time for all retries.
max_retries: 10,
Expand Down
Loading