Skip to content

Commit

Permalink
feat: adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
brglng committed Aug 16, 2024
1 parent cc1c8c8 commit 888d2ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type Result<T> = std::result::Result<T, Error>;

fn breadth_first_traverse(prog: &str, allow_hidden: bool, follow_links: bool, ignores: &[String], in_queue: &PathQueue, out_queue: &PathQueue) -> Result<()> {
loop {
let path = in_queue.pop_timeout(100)?;
let path = in_queue.pop_timeout(200)?;
if let Some(path) = path {
let entries = fs::read_dir(&path);
if let Ok(entries) = entries {
Expand Down Expand Up @@ -181,7 +181,7 @@ fn main() {

let num_threads = {
if let Ok(n) = thread::available_parallelism() {
max(n.get() , 16)
n.get()
} else {
exit(1);
}
Expand Down

0 comments on commit 888d2ce

Please # to comment.