We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c6e035 commit 37e6a88Copy full SHA for 37e6a88
aggregation_mode/db/src/orchestrator.rs
@@ -150,6 +150,7 @@ impl DbOrchestartor {
150
// ...
151
// until the delay reaches `max_delay_seconds`, after which it stays at that max.
152
// see reference: https://en.wikipedia.org/wiki/Exponential_backoff
153
+ // and here: https://docs.aws.amazon.com/prescriptive-guidance/latest/cloud-design-patterns/retry-backoff.html
154
fn next_backoff_delay(&self, current_delay: Duration) -> Duration {
155
let max: Duration = Duration::from_secs(self.retry_config.max_delay_seconds);
156
// Defensive: factor should be >= 1.0 for backoff, we clamp it to avoid shrinking/NaN.
0 commit comments