From 8cdde74fcdcf31414da0d22222d2cc338df20fa1 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 Nov 2026 15:06:04 +0000 Subject: wire: what another kind of document says, in a SYNC's body and a STATUS's stamp From version 53 on, beside Automerge's (SyncBody::Kind, HeadsSummary::Kind): a SYNC's body is one more of its shapes, another kind's bytes; a STATUS's stamp is another kind's bytes after a byte no Automerge stamp begins with. Nothing version 53 said changes, and version 52 says neither (WireError::OtherKind). Two stamps of another kind are the same where their bytes are. A node holding an Automerge document passes over a body of another kind: a peer holding one isn't let near it. --- src/transport/traffic.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/transport/traffic.rs') diff --git a/src/transport/traffic.rs b/src/transport/traffic.rs index 33903ca..01bba65 100644 --- a/src/transport/traffic.rs +++ b/src/transport/traffic.rs @@ -225,7 +225,10 @@ fn related(peer: &str, message: &ParsedMessage) -> Option { SyncBody::Delta(spec) => { format!("blob {}", crate::transport::BlobId::Delta(spec.id())) } - SyncBody::Message(_) | SyncBody::Deflated(_) | SyncBody::Changes { .. } => { + SyncBody::Message(_) + | SyncBody::Deflated(_) + | SyncBody::Changes { .. } + | SyncBody::Kind(_) => { return None; } }, -- cgit v1.3.1