Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9bdf26a

Browse files
committed
uprgade to latest jwalk version for more hang-safety
1 parent 53a7d15 commit 9bdf26a

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ trash-move = ["trash"]
1919

2020
[dependencies]
2121
clap = { version = "4.0.29", features = ["derive"] }
22-
jwalk = "0.6.2"
22+
jwalk = "0.8.0"
2323
byte-unit = "4"
2424
atty = "0.2.11"
2525
petgraph = "0.6"

src/common.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ impl WalkOptions {
156156
}
157157
})
158158
.parallelism(match self.threads {
159-
0 => jwalk::Parallelism::RayonDefaultPool,
159+
0 => jwalk::Parallelism::RayonDefaultPool {
160+
busy_timeout: std::time::Duration::from_secs(1),
161+
},
160162
1 => jwalk::Parallelism::Serial,
161163
_ => jwalk::Parallelism::RayonNewPool(self.threads),
162164
})

0 commit comments

Comments
 (0)