Skip to content

Commit f7a82d1

Browse files
committed
add backoff for perssimistic
Signed-off-by: haojinming <jinming.hao@pingcap.com>
1 parent 0cd9efc commit f7a82d1

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)