diff options
| author | tv <tv@krebsco.de> | 2026-11-16 21:26:47 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-16 23:04:42 +0100 |
| commit | d46368d5ba8d7a12e657b5f293830b6c0d8dce00 (patch) | |
| tree | 85cce42b4b21839a0a606ae64e55043d34e7bb87 /src/federation/fold.rs | |
| parent | d22ca4351b86c0066f13e735960838bb5d85e044 (diff) | |
federation: events offered to a node's store, and its operator's drops
A node's store takes events from elsewhere than its document too: one put at its API is
offered to it first (`Holding::offer`), to say what became of it. Its operator has it
drop events it took after its checkpoint, with everything built on them
(`Holding::drop_taken`), and takes them back (`Holding::allow`), the document's events
then offered again (`docs/store.md`, A node's own). After each, what the node keeps of
its own is written to its file where it changed, and the members are as the store reads
now.
Diffstat (limited to 'src/federation/fold.rs')
| -rw-r--r-- | src/federation/fold.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/federation/fold.rs b/src/federation/fold.rs index ad9ff59..8ce6e60 100644 --- a/src/federation/fold.rs +++ b/src/federation/fold.rs @@ -210,7 +210,7 @@ impl State { } /// The node list of `party` by `current`. - fn nodes_of(&self, party: &str, current: &Version) -> Vec<String> { + pub(crate) fn nodes_of(&self, party: &str, current: &Version) -> Vec<String> { let Some(given) = current.parties.get(party) else { return Vec::new(); }; |
