mirror of
https://github.com/bootandy/dust.git
synced 2025-12-05 20:40:11 -08:00
fix: dir_walker interrupted error
Ignore and continue if we get many interrupted errors instead of panicing on 3. This is from user feedback who reported occasional panics from too many interrupted errors https://github.com/bootandy/dust/issues/495#issuecomment-3026673312
This commit is contained in:
@@ -305,11 +305,7 @@ fn handle_error_and_retry(failed: &Error, dir: &Path, walk_data: &WalkData) -> b
|
|||||||
}
|
}
|
||||||
std::io::ErrorKind::Interrupted => {
|
std::io::ErrorKind::Interrupted => {
|
||||||
editable_error.interrupted_error += 1;
|
editable_error.interrupted_error += 1;
|
||||||
if editable_error.interrupted_error > 3 {
|
return true;
|
||||||
panic!("Multiple Interrupted Errors occurred while scanning filesystem. Aborting");
|
|
||||||
} else {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
editable_error.unknown_error.insert(failed.to_string());
|
editable_error.unknown_error.insert(failed.to_string());
|
||||||
|
|||||||
Reference in New Issue
Block a user