seatbelt 0.4.4

Resilience and recovery mechanisms for fallible operations.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::time::Duration;

/// Default maximum hedged attempts: 1.
///
/// One additional hedged attempt beyond the original request, resulting in 2 total
/// concurrent attempts. This provides basic hedging benefits while
/// limiting resource overhead.
pub(super) const DEFAULT_MAX_HEDGED_ATTEMPTS: u8 = 1;

/// Default delay between launching hedged requests: 500 milliseconds.
pub(super) const DEFAULT_HEDGING_DELAY: Duration = Duration::from_millis(500);