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.

clock: Bump the min collaborator ID (#40694)

Lukas Wirthbdb7c642a127
diff --git a/crates/clock/src/clock.rs b/crates/clock/src/clock.rs
index a3cf2b819ec..04a7c7c881b 100644
--- a/crates/clock/src/clock.rs
+++ b/crates/clock/src/clock.rs
@@ -23,7 +23,7 @@ impl ReplicaId {
/// A local branch.
pub const LOCAL_BRANCH: ReplicaId = ReplicaId(3);
/// The first collaborative replica ID, any replica equal or greater than this is a collaborative replica.
- pub const FIRST_COLLAB_ID: ReplicaId = ReplicaId(Self::LOCAL_BRANCH.0 + 1);
+ pub const FIRST_COLLAB_ID: ReplicaId = ReplicaId(8);
pub fn new(id: u16) -> Self {
ReplicaId(id)