mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03: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
@ -74,7 +74,7 @@ impl Worktree {
|
||||
|
||||
{
|
||||
let tree = tree.clone();
|
||||
std::thread::spawn(move || {
|
||||
ctx.app().scoped_pool().spawn(move || {
|
||||
if let Err(error) = tree.scan_dirs() {
|
||||
log::error!("error scanning worktree: {}", error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user