From 784c6e7c9088dde2f23cc1d02381a0c5fe8b010b Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 5 Nov 2026 04:50:17 +0100 Subject: pushed heads as tips --- src/transport/mod.rs | 3 ++- src/transport/wire.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/transport') diff --git a/src/transport/mod.rs b/src/transport/mod.rs index 7e5d41b..2595257 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -746,7 +746,8 @@ pub(crate) enum SyncBody { /// Changes passed on along a writer's tree as they are, with the sender's heads, /// instead of an Automerge sync message (`AppState::push_changes`): where the sender /// takes the message as delivered, it has everything the receiver has, and needs - /// none of the rest of one (`SyncSession::push`). + /// none of the rest of one (`SyncSession::push`). No heads stand for the tips of + /// the changes, as the sender's heads mostly are. Changes { #[serde(with = "crate::transport::wire::codec::change_hashes")] heads: Vec, diff --git a/src/transport/wire.rs b/src/transport/wire.rs index 70ac3ce..580712e 100644 --- a/src/transport/wire.rs +++ b/src/transport/wire.rs @@ -14,7 +14,7 @@ use super::{EncodedMessage, MessageKind, ParsedMessage}; /// The wire format's version, the first byte of every payload. Bump it with every change /// to a message type or a codec (`golden_bytes` fails then). -pub(crate) const VERSION: u8 = 33; +pub(crate) const VERSION: u8 = 34; /// What the second byte of a payload says. fn tag(kind: MessageKind) -> u8 { -- cgit v1.3.1