From e6f90362a70edc23ce2c02391f27f59d041bc643 Mon Sep 17 00:00:00 2001 From: "andy.boot" Date: Mon, 2 Jun 2025 23:32:46 +0100 Subject: [PATCH] fix: bug: Remove bad error handling This may be causing dust to lock up as we were accidentally creating a second editable_error causing threads to lock. https://github.com/bootandy/dust/issues/495 --- src/dir_walker.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/dir_walker.rs b/src/dir_walker.rs index 701e51e..c8779b2 100644 --- a/src/dir_walker.rs +++ b/src/dir_walker.rs @@ -304,7 +304,6 @@ fn handle_error_and_retry(failed: &Error, dir: &Path, walk_data: &WalkData) -> b editable_error.file_not_found.insert(failed.to_string()); } std::io::ErrorKind::Interrupted => { - let mut editable_error = walk_data.errors.lock().unwrap(); editable_error.interrupted_error += 1; if editable_error.interrupted_error > 3 { panic!("Multiple Interrupted Errors occurred while scanning filesystem. Aborting");