aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.rs')
-rw-r--r--src/node.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node.rs b/src/node.rs
index 22aa0df..6fc8c66 100644
--- a/src/node.rs
+++ b/src/node.rs
@@ -62,6 +62,8 @@ pub(crate) struct NodeConfig {
pub(crate) blob_chunk_bytes: u32,
pub(crate) swarm_key: Option<Arc<SwarmKey>>,
pub(crate) protocol_writers: HashSet<String>,
+ /// `--store-readers`: on a node holding a federated store, the users who only read it.
+ pub(crate) store_readers: HashSet<String>,
/// On a genesis node: the swarm's first users, which it records
/// (`access::registry::first_users`); empty elsewhere, and where none were named
/// (the simulations: no registry).
@@ -193,6 +195,7 @@ impl Node {
blobs: Arc::new(swarm::blob::Blobs::new(config.blob_chunk_bytes)),
speaking: Arc::default(),
protocol_writers: Arc::new(config.protocol_writers),
+ store_readers: Arc::new(config.store_readers),
first_users: Arc::new(config.first_users),
first_policy: config.first_policy,
node_key: config.node_key,