From 42b2b644815a2b7f29eb078eb515820368121f89 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 23 Oct 2026 22:47:31 +0200 Subject: drop pre-membership sync messages The handshake resets the session anyway, and the sender's reply timeout resends what still matters. --- src/state.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index 4d82150..542cadb 100644 --- a/src/state.rs +++ b/src/state.rs @@ -100,9 +100,6 @@ pub(crate) struct PeerState { /// or sending failed). pub(crate) reply_owed: bool, - /// Received from this peer before it became a member, waiting to be processed. - pub(crate) pending_inbound_sync: Vec, - /// Everything about the current Automerge sync with this peer; a reset replaces it. pub(crate) sync: SyncSession, @@ -322,7 +319,6 @@ impl PeerState { standing: Standing::default(), hello_state: HelloState::default(), reply_owed: false, - pending_inbound_sync: Vec::new(), sync: SyncSession::new(leads, SessionCause::NewPeer), liveness: Liveness::Active, added_at: Instant::now(), -- cgit v1.3.1