aboutsummaryrefslogtreecommitdiffstats
path: root/src/state
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-30 14:59:37 +0000
committertv <tv@krebsco.de>2026-11-30 14:59:37 +0000
commitbb860d2cf0adad80016edb7a7baed4df291b828c (patch)
tree7e0bed9ff36df8c5b5432ddd2d7b544278d25f54 /src/state
parent8017b0e69f0350c2a35629ae71d511ddf7a3aa9c (diff)
federation: what a set hands the node to read is as a store's document
Beside its members' entries, the policy of a swarm holding a store and the swarm's ID (Holding::entries): what reads a document for them reads the same of a node on a set. Tokens are checked against it (api::login): their issuer's entry is there, and a node takes none another issued, as the policy says; read of the empty Automerge document beside, every token was refused.
Diffstat (limited to 'src/state')
-rw-r--r--src/state/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state/mod.rs b/src/state/mod.rs
index d512b2b..21478de 100644
--- a/src/state/mod.rs
+++ b/src/state/mod.rs
@@ -404,7 +404,8 @@ impl AppState {
}
}
- /// The members' entries as a document has them, where this node's document keeps
+ /// What the node reads of a document at paths (its members, the policy, the swarm's
+ /// ID), where this node's document keeps
/// them apart (a set of events, `Holding::entries`): none, where they are in the
/// document it holds.
pub(crate) fn entries(&self) -> Option<crate::document::view::Tree> {