Skip to content

Commit

Permalink
fix: lower initial backoff to 100ms (from 1s)
Browse files Browse the repository at this point in the history
1s is quite long, esp. when users expect rather low-latency operations.
It's also a bit of a pain for our tests because a single error (like
`NotAvailable`) can delay tests by a whole second easily leading to
timeouts.
  • Loading branch information
crepererum committed Jan 14, 2022
1 parent 7ac1d80 commit b4e34b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backoff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub struct BackoffConfig {
impl Default for BackoffConfig {
fn default() -> Self {
Self {
init_backoff: Duration::from_secs(1),
init_backoff: Duration::from_millis(100),
max_backoff: Duration::from_secs(500),
base: 3.,
}
Expand Down

0 comments on commit b4e34b7

Please sign in to comment.