mirror of
https://github.com/containers/youki
synced 2024-11-26 14:13:49 +01:00
Merge pull request #1128 from cyyzero/fix_delete_retry
Fix bug that attempts is always 0 in delete_with_retry
This commit is contained in:
commit
c16a1cb009
@ -420,7 +420,7 @@ pub(crate) fn delete_with_retry<P: AsRef<Path>, L: Into<Option<Duration>>>(
|
||||
}
|
||||
|
||||
std::thread::sleep(delay);
|
||||
attempts += attempts;
|
||||
attempts += 1;
|
||||
delay *= attempts;
|
||||
if delay > limit {
|
||||
delay = limit;
|
||||
|
Loading…
Reference in New Issue
Block a user