From 7b9ff4267978a1bfe415114d5cf1b4c66b8c4207 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Sat, 12 Feb 2022 11:56:20 +0100 Subject: [PATCH] Apply worktree updates in the order they were received --- crates/project/src/worktree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/project/src/worktree.rs b/crates/project/src/worktree.rs index ba59afd9b9589df37bdf45c44739636fc55936a6..248a7d3dd7ab6d64780a4078189fb8bb03f3912a 100644 --- a/crates/project/src/worktree.rs +++ b/crates/project/src/worktree.rs @@ -818,7 +818,7 @@ impl RemoteWorktree { ) -> Result<()> { let mut tx = self.updates_tx.clone(); let payload = envelope.payload.clone(); - cx.background() + cx.foreground() .spawn(async move { tx.send(payload).await.expect("receiver runs to completion"); })