Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

:lipstick:

Antonio Scandurrae2b132ef2349
diff --git a/crates/collab/src/rpc.rs b/crates/collab/src/rpc.rs
index ee72e89b37b..5b0023fa99d 100644
--- a/crates/collab/src/rpc.rs
+++ b/crates/collab/src/rpc.rs
@@ -277,12 +277,9 @@ impl Server {
}
for user_id in contacts_to_update {
- if let Some((busy, contacts)) = db
- .is_user_busy(user_id)
- .await
- .trace_err()
- .zip(db.get_contacts(user_id).await.trace_err())
- {
+ let busy = db.is_user_busy(user_id).await.trace_err();
+ let contacts = db.get_contacts(user_id).await.trace_err();
+ if let Some((busy, contacts)) = busy.zip(contacts) {
let pool = pool.lock().await;
let updated_contact = contact_for_user(user_id, false, busy, &pool);
for contact in contacts {