From ab8f5447680da56ce658abbc33c222219c3204ef Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 6 Nov 2026 16:47:32 +0100 Subject: plumtree --- src/node.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/node.rs') diff --git a/src/node.rs b/src/node.rs index b03f0a2..a9d99b2 100644 --- a/src/node.rs +++ b/src/node.rs @@ -53,6 +53,8 @@ pub(crate) struct NodeConfig { pub(crate) stream_heartbeat: Duration, /// `--superseded-writes`. pub(crate) superseded_writes: crate::remake::Superseded, + /// `--dissemination`. + pub(crate) dissemination: crate::swarm::dissemination::Kind, pub(crate) blob_chunk_bytes: u32, pub(crate) swarm_key: Option>, pub(crate) protocol_writers: HashSet, @@ -101,7 +103,7 @@ impl Node { })), peer_states: Arc::new(RwLock::new(HashMap::new())), topology: Arc::new(crate::swarm::topology::RingAndPairs), - dissemination: Arc::new(crate::swarm::tree::WritersTrees), + dissemination: config.dissemination.make(), // Counted above the firewall (in the paths layer, under the identity layer): // what it drops outbound counts as sent (it plays a lossy network), what it // drops inbound never arrived. Without the identity layer (tests) there is -- cgit v1.3.1