Skip to content

Commit

Permalink
chore: retry time starts from 1
Browse files Browse the repository at this point in the history
  • Loading branch information
wangl-cc committed Sep 6, 2024
1 parent 47197cc commit 508498d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maa-cli/src/dirs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ impl Ensure for &Path {
fn ensure_clean(self) -> Result<Self, Self::Error> {
if self.exists() {
let mut ret = remove_dir_all(self);
for i in 0..3 {
for i in 1..=3 {
if let Err(err) = &ret {
log::warn!(
"Failed to remove dir {} due to {err}, retry {i} times",
Expand Down

0 comments on commit 508498d

Please sign in to comment.