change pessimistic backoff (#367)

Signed-off-by: ekexium <eke@fastmail.com>
Co-authored-by: Andy Lok <andylokandy@hotmail.com>
This commit is contained in:
ekexium 2023-06-26 22:49:19 +08:00 committed by GitHub
parent 8f54e61142
commit 68a6dd3aa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.
///