mirror of https://github.com/tikv/client-rust.git
change pessimistic backoff (#367)
Signed-off-by: ekexium <eke@fastmail.com> Co-authored-by: Andy Lok <andylokandy@hotmail.com>
This commit is contained in:
parent
8f54e61142
commit
68a6dd3aa6
|
@ -7,7 +7,7 @@ use std::time::Duration;
|
|||
|
||||
pub const DEFAULT_REGION_BACKOFF: Backoff = Backoff::no_jitter_backoff(2, 500, 10);
|
||||
pub const OPTIMISTIC_BACKOFF: Backoff = Backoff::no_jitter_backoff(2, 500, 10);
|
||||
pub const PESSIMISTIC_BACKOFF: Backoff = Backoff::no_backoff();
|
||||
pub const PESSIMISTIC_BACKOFF: Backoff = Backoff::no_jitter_backoff(2, 500, 10);
|
||||
|
||||
/// When a request is retried, we can backoff for some time to avoid saturating the network.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue