aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/peer
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-05 16:12:17 +0100
committertv <tv@krebsco.de>2026-11-05 16:12:17 +0100
commit63acf8447f7702a6d083b8ed602eafdf2ff7f6d9 (patch)
tree27e40b11da6a1f9907cd46b5be96db23b5124f8e /src/swarm/peer
parent92a1e984ee332738d3b5afa0443564b6473137d1 (diff)
lanes comment
Diffstat (limited to 'src/swarm/peer')
-rw-r--r--src/swarm/peer/lanes.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/swarm/peer/lanes.rs b/src/swarm/peer/lanes.rs
index 88639ea..f40d797 100644
--- a/src/swarm/peer/lanes.rs
+++ b/src/swarm/peer/lanes.rs
@@ -14,8 +14,11 @@ use crate::swarm::sync::handle_sync;
use crate::transport::SyncEnvelope;
const LANES: usize = 4;
-/// Sync messages waiting per lane. A full lane drops what arrives: its sender gets no
-/// answer and resends after its reply timeout, by which time the backlog is gone.
+/// Sync messages waiting per lane. A full lane drops what arrives, as a lost message:
+/// one its sender awaits an answer to goes again after its reply timeout, by which time
+/// the backlog is gone; one taken as delivered (along a tree) isn't sent again, and what
+/// it carried comes when we ask for it (a later message names it) or with the slow
+/// round (`swarm::relay`).
const QUEUED_PER_LANE: usize = 256;
pub(crate) struct SyncLanes {