Skip to content

Commit

Permalink
opt: continue if err while scan dir
Browse files Browse the repository at this point in the history
  • Loading branch information
kulukami committed Aug 9, 2024
1 parent 01f0044 commit c0233f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/scanner/rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.72.0
1.79.0
5 changes: 4 additions & 1 deletion plugins/scanner/src/detector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ impl Detector {
break;
}
Some(Err(_err)) => {
/*
let end_flag = ScanFinished {
data: "failed".to_string(),
error: _err.to_string(),
Expand All @@ -450,7 +451,9 @@ impl Detector {
) {
warn!("send err, should exit : {:?}", e);
};
break;
break;
*/
continue
}
Some(Ok(entry)) => entry,
};
Expand Down

0 comments on commit c0233f8

Please sign in to comment.