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 edb3921 commit b2b1f86Copy full SHA for b2b1f86
src/utils/retryable.rs
@@ -129,9 +129,7 @@ pub async fn run<
129
return Result::Err(err);
130
}
131
let remaining_time = deadline.saturating_duration_since(now);
132
- if remaining_time < sleep_duration {
133
- sleep_duration = remaining_time;
134
- }
+ sleep_duration = std::cmp::min(sleep_duration, remaining_time);
135
136
trace!(
137
"Will retry in {}ms for error: {}",
0 commit comments