Skip to content

Commit

Permalink
fix awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
matoous committed Feb 4, 2024
1 parent 9be8135 commit acf9986
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helix-view/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ impl Document {
});
}

helix_lsp::block_on(future::join_all(notifications));
future::join_all(notifications).await;
}
};

Expand Down Expand Up @@ -938,7 +938,7 @@ impl Document {
};

notifications.push(async move {
if let Err(err) = helix_lsp::block_on(notification) {
if let Err(err) = notification.await {
log::error!(
"failed to send textDocument/didSave notification: {err:?}"
);
Expand All @@ -947,7 +947,7 @@ impl Document {
}
}

helix_lsp::block_on(future::join_all(notifications));
future::join_all(notifications).await;
}

Ok(event)
Expand Down

0 comments on commit acf9986

Please sign in to comment.