Skip to content

Commit 37e6a88

Browse files
committed
chore: link to aws in backoff alg
1 parent 7c6e035 commit 37e6a88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aggregation_mode/db/src/orchestrator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ impl DbOrchestartor {
150150
// ...
151151
// until the delay reaches `max_delay_seconds`, after which it stays at that max.
152152
// 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
153154
fn next_backoff_delay(&self, current_delay: Duration) -> Duration {
154155
let max: Duration = Duration::from_secs(self.retry_config.max_delay_seconds);
155156
// Defensive: factor should be >= 1.0 for backoff, we clamp it to avoid shrinking/NaN.

0 commit comments

Comments
 (0)