Apply worktree updates in the order they were received

This commit is contained in:
Antonio Scandurra 2022-02-12 11:56:20 +01:00
parent 5a7d391d73
commit 7b9ff42679

View file

@ -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");
})