Hi team, IIRC, after adding previous delay, the current delay could exceed max delay
|
// If current delay larger than max delay, we should stop increment anymore. |
|
if next < self.max_delay.unwrap_or(Duration::MAX) { |
|
if let Some(prev) = self.previous_delay { |
|
next = next.saturating_add(prev); |
|
self.current_delay = Some(next); |
|
} |
Hi team, IIRC, after adding previous delay, the current delay could exceed max delay
backon/backon/src/backoff/fibonacci.rs
Lines 198 to 203 in 60d0348