Skip to content

Commit

Permalink
fix awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
matoous committed Mar 31, 2024
1 parent 873b3e7 commit 03cc560
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 @@ -892,7 +892,7 @@ impl Document {
});
}

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

Expand Down Expand Up @@ -939,7 +939,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 @@ -948,7 +948,7 @@ impl Document {
}
}

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

Ok(event)
Expand Down

0 comments on commit 03cc560

Please sign in to comment.