Skip to content

Commit 68a6dd3

Browse files
ekexiumandylokandy
andauthored
change pessimistic backoff (#367)
Signed-off-by: ekexium <eke@fastmail.com> Co-authored-by: Andy Lok <andylokandy@hotmail.com>
1 parent 8f54e61 commit 68a6dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backoff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::time::Duration;
77

88
pub const DEFAULT_REGION_BACKOFF: Backoff = Backoff::no_jitter_backoff(2, 500, 10);
99
pub const OPTIMISTIC_BACKOFF: Backoff = Backoff::no_jitter_backoff(2, 500, 10);
10-
pub const PESSIMISTIC_BACKOFF: Backoff = Backoff::no_backoff();
10+
pub const PESSIMISTIC_BACKOFF: Backoff = Backoff::no_jitter_backoff(2, 500, 10);
1111

1212
/// When a request is retried, we can backoff for some time to avoid saturating the network.
1313
///

0 commit comments

Comments
 (0)