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.

Fix deadlock in db `get_room`

Julia4ffc8cd9fd2e
diff --git a/crates/collab/src/db.rs b/crates/collab/src/db.rs
index ec89a3dface..1059b280101 100644
--- a/crates/collab/src/db.rs
+++ b/crates/collab/src/db.rs
@@ -1996,7 +1996,8 @@ impl Database {
}
}
}
- }
+ }
+ drop(db_projects);
let mut db_followers = db_room.find_related(follower::Entity).stream(tx).await?;
let mut followers = Vec::new();