aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-06 16:47:32 +0100
committertv <tv@krebsco.de>2026-11-06 16:47:32 +0100
commitab8f5447680da56ce658abbc33c222219c3204ef (patch)
tree93ed572d120cf29b7e440c31194bafd021e8a5a6 /src/node.rs
parent7c0f90b327ad567c4e5e6a96cda433d774182dac (diff)
plumtree
Diffstat (limited to 'src/node.rs')
-rw-r--r--src/node.rs4
1 files changed, 3 insertions, 1 deletions
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<Arc<SwarmKey>>,
pub(crate) protocol_writers: HashSet<String>,
@@ -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