aboutsummaryrefslogtreecommitdiffstats
path: root/src/access/sealed.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-30 17:57:55 +0000
committertv <tv@krebsco.de>2026-11-30 17:57:55 +0000
commit08ec65219991c7413c8cdef4ce77434f2a121331 (patch)
tree2c9d6f07e435a1ae37c62571579b170374cfbb70 /src/access/sealed.rs
parent00e88cd983766abec32b5a14a8cbf20932a27f3c (diff)
A node of both kinds, for a swarm to move to sets by (--store-both)
With store-document, store-both has the node hold its store in the Automerge document too, and sync with nodes of either kind: * it says to each peer the kind that peer holds, and passes its set on to those that hold sets (swarm::set::holds_a_set), the Automerge document to the others; * what its set takes of the document goes on to the peers on sets (Holding::unpassed), and what its set takes of them is put into the document, as events it lacks are (Holding::lacking); * its entry in the document is put as its entry in the set (swarm::set::mirror_entry), and it reads the members of both; * without the set's file yet, its set is made of the store as it reads it of its document, with what store-file kept of its own. A simulation: two nodes on the Automerge document, one on a set, one of both between them; an event put on either side reaches all four.
Diffstat (limited to 'src/access/sealed.rs')
0 files changed, 0 insertions, 0 deletions