Skip to content

Commit f10a34b

Browse files
committed
fix: use min instead of max in next_backoff_delay
1 parent 79134a5 commit f10a34b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aggregation_mode/db/src/retry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ pub fn next_backoff_delay(current_delay: Duration, retry_config: RetryConfig) ->
5959
};
6060

6161
let scaled = Duration::from_secs_f64(scaled_secs);
62-
scaled.max(max)
62+
scaled.min(max)
6363
}

0 commit comments

Comments
 (0)