diff options
| author | tv <tv@krebsco.de> | 2026-11-05 16:12:17 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-05 16:12:17 +0100 |
| commit | 63acf8447f7702a6d083b8ed602eafdf2ff7f6d9 (patch) | |
| tree | 27e40b11da6a1f9907cd46b5be96db23b5124f8e /src/swarm | |
| parent | 92a1e984ee332738d3b5afa0443564b6473137d1 (diff) | |
lanes comment
Diffstat (limited to 'src/swarm')
| -rw-r--r-- | src/swarm/peer/lanes.rs | 7 |
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 { |
