aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-27 00:36:40 +0100
committertv <tv@krebsco.de>2026-10-27 00:36:40 +0100
commita4d50888fa8aca1e812dd247ca0af990b91c02b0 (patch)
treec11a70f37dac370d2d262bc4e353a28d895f2f79 /src/transport/mod.rs
parentaea4133ecb303262d9c966322d34ed73ed22e122 (diff)
talk about "transport" unless mycelium is meant
Diffstat (limited to 'src/transport/mod.rs')
-rw-r--r--src/transport/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs
index d97c51c..61b1f4b 100644
--- a/src/transport/mod.rs
+++ b/src/transport/mod.rs
@@ -21,10 +21,10 @@ pub(crate) mod wire;
/// Random identifier of one run of a node (from start to exit).
pub(crate) type RunId = [u8; 16];
-/// Most heads listed in a keepalive; more are sent as a digest. A head takes 34 bytes on
-/// the wire, so 32 of them keep a keepalive within one Mycelium chunk (1300 bytes; see
-/// the size test in `mycelium`). There are rarely more heads than nodes that wrote
-/// concurrently since the last merging write.
+/// Most heads listed in a keepalive; more are sent as a digest. A head takes 34 bytes
+/// on the wire, so 32 of them keep a keepalive within one small packet (a Mycelium
+/// chunk: 1300 bytes; see the size test in `mycelium`). There are rarely more heads
+/// than nodes that wrote concurrently since the last merging write.
pub(crate) const MAX_LISTED_HEADS: usize = 32;
/// A document's heads, compactly: the heads themselves while there are few, otherwise a