From c85e4efec5bf8c5d83401816b6de4f46fbedd99e Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 6 Nov 2026 04:32:20 +0100 Subject: one grace wait per peer --- src/state/peer.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/state') diff --git a/src/state/peer.rs b/src/state/peer.rs index e2a47ec..e0cea7e 100644 --- a/src/state/peer.rs +++ b/src/state/peer.rs @@ -162,6 +162,9 @@ pub(crate) struct PeerState { /// Its round trip to each of them, in their order, as a bucket /// (`Status::round_trips`); None if it said none, or not one each. pub(crate) round_trips: Option>, + /// The latest STATUS whose heads we may lack, while one waits out its grace + /// (`relay::pull_after_grace`): one wait per peer, however many come meanwhile. + pub(crate) pull_pending: Option, /// Whose change the next sync message to it passes on along the writer's tree /// (`swarm::tree`); taken when it is generated. pub(crate) tree_writer: Option, @@ -305,6 +308,7 @@ impl PeerState { slow_announced_at: None, reaches: None, round_trips: None, + pull_pending: None, tree_writer: None, left: false, hello_attempts: 0, -- cgit v1.3.1