Send buffer operations in the order they occur

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Antonio Scandurra 2021-07-09 19:07:04 +02:00
parent ad3dcfed10
commit b7fae693f9

View file

@ -1748,8 +1748,7 @@ impl File {
Worktree::Local(worktree) => worktree.rpc.clone(),
Worktree::Remote(worktree) => Some((worktree.rpc.clone(), worktree.remote_id)),
} {
cx.background()
.spawn(async move {
cx.spawn(|_, _| async move {
if let Err(error) = rpc
.send(proto::UpdateBuffer {
worktree_id: remote_id,