mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-11 04:36:24 +00:00
Spawn worktree scanning on the scoped pool
Co-Authored-By: Brooks Swinnerton <934497+bswinnerton@users.noreply.github.com>
This commit is contained in:
parent
e4f41de7bf
commit
26f9127e83
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ impl Worktree {
|
||||||
|
|
||||||
{
|
{
|
||||||
let tree = tree.clone();
|
let tree = tree.clone();
|
||||||
std::thread::spawn(move || {
|
ctx.app().scoped_pool().spawn(move || {
|
||||||
if let Err(error) = tree.scan_dirs() {
|
if let Err(error) = tree.scan_dirs() {
|
||||||
log::error!("error scanning worktree: {}", error);
|
log::error!("error scanning worktree: {}", error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue