mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-27 04:44:30 +00:00
Reintroduce the 100ms delay when polling worktree entries
This regressed when I switched us over to the simplified async approach. I think it was causing us to contend on the mutex on during startup.
This commit is contained in:
parent
d234f63447
commit
143ea24875
1 changed files with 1 additions and 0 deletions
|
@ -145,6 +145,7 @@ impl Worktree {
|
|||
|
||||
if self.is_scanning() && !self.poll_scheduled {
|
||||
ctx.spawn(|this, mut ctx| async move {
|
||||
smol::Timer::after(Duration::from_millis(100)).await;
|
||||
this.update(&mut ctx, |this, ctx| {
|
||||
this.poll_scheduled = false;
|
||||
this.poll_entries(ctx);
|
||||
|
|
Loading…
Reference in a new issue