This commit is contained in:
Nathan Sobo
2021-04-14 12:38:16 -06:00
parent cbc1d83067
commit 36e6ed3aef
6 changed files with 329 additions and 7 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ impl Worktree {
{
let tree = tree.clone();
ctx.as_ref().scoped_pool().spawn(move || {
ctx.as_ref().thread_pool().spawn(move || {
if let Err(error) = tree.scan_dirs() {
log::error!("error scanning worktree: {}", error);
}
@@ -725,7 +725,7 @@ mod test {
false,
false,
10,
ctx.scoped_pool().clone(),
ctx.thread_pool().clone(),
)
.iter()
.map(|result| tree.entry_path(result.entry_id))