summaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-23 22:47:31 +0200
committertv <tv@krebsco.de>2026-10-23 22:50:09 +0200
commit42b2b644815a2b7f29eb078eb515820368121f89 (patch)
treec6e3fc9f7669219d60695949a74b5e578a4e5fea /src/state.rs
parentde560ee34ba0297194cae6ac9a1966e3ef614945 (diff)
drop pre-membership sync messages
The handshake resets the session anyway, and the sender's reply timeout resends what still matters.
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs4
1 files changed, 0 insertions, 4 deletions
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<transport::SyncEnvelope>,
-
/// 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(),