diff options
| author | tv <tv@krebsco.de> | 2026-11-30 17:57:55 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-30 17:57:55 +0000 |
| commit | 00e88cd983766abec32b5a14a8cbf20932a27f3c (patch) | |
| tree | faf9cba0a32b2cc6b6026151f37ddd13e3b06e2f /src/swarm/topology | |
| parent | 93defc68f9b99da921f4746e91e5cee9e6e3f1b9 (diff) | |
swarm: members read of a set's entries over the document's
What a set hands the node to read was read in the document's place;
it is read over it now (view::Listed): at a path, what the set's tree
holds, else what the document does, and maps of both as one. A node on
a set alone reads the same as before, its document being empty; one
holding its store in both, to come, reads the members of both.
Diffstat (limited to 'src/swarm/topology')
| -rw-r--r-- | src/swarm/topology/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/swarm/topology/mod.rs b/src/swarm/topology/mod.rs index ef778d0..1f99cd8 100644 --- a/src/swarm/topology/mod.rs +++ b/src/swarm/topology/mod.rs @@ -412,7 +412,7 @@ async fn nearby(state: &AppState, inputs: &Inputs<'_>) -> BTreeSet<String> { let group: BTreeMap<String, BTreeSet<String>> = { let replica = state.doc.read().await; let entries = state.entries(); - let listed = crate::document::view::members_of(&entries, &replica.doc); + let listed = &crate::document::view::members_of(&entries, &replica.doc); inputs .transports .iter() @@ -741,7 +741,7 @@ pub(crate) async fn refresh(state: &AppState) -> Option<NeighbourChange> { let (current, stable, transports, alive, k, recorded) = { let replica = state.doc.read().await; let entries = state.entries(); - let listed = crate::document::view::members_of(&entries, &replica.doc); + let listed = &crate::document::view::members_of(&entries, &replica.doc); members::apply(state, listed); let k = swarm_neighbours(&replica.doc, state.neighbours_k); switch_ways(state, swarm_ways(&replica.doc, state.configured_ways)); |
