diff options
| author | tv <tv@krebsco.de> | 2026-11-29 03:21:43 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-29 03:21:43 +0000 |
| commit | e63d30c2581033a85489b10c3f5b252fdbb5049e (patch) | |
| tree | 5f4e6f65f1cecfb32f841e7ad7d9d106aeb69b20 /src/simtest/hyparview.rs | |
| parent | 9188fa6e13ea7facfab5fb6f55bf26444ec2c01e (diff) | |
state: plain writes take a view to write, Automerge's are asked for as such
AppState::mutate_doc, mutate_doc_registering and mutate_doc_by hand what
they are given a document::view::Write: the member registry, the users,
sessions, forgetting and bootstrap write through them, and take whatever
kind of document gives it. AppState::mutate_doc_for is for what asks
more of an Automerge document than values at paths (the store's API, a
remake's host, a store's events), and gives the heads after the write.
What reads a view takes one of any size (dyn Write among them).
Diffstat (limited to 'src/simtest/hyparview.rs')
| -rw-r--r-- | src/simtest/hyparview.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simtest/hyparview.rs b/src/simtest/hyparview.rs index 65d581c..b5177d1 100644 --- a/src/simtest/hyparview.rs +++ b/src/simtest/hyparview.rs @@ -218,12 +218,12 @@ async fn a_swarm_switches_to_hyparview_at_runtime() { nodes[0] .mutate_doc(|doc| { - crate::document::store::write_path( + crate::document::view::write_path( doc, &crate::swarm::topology::topology_path(), &json!("hyparview"), )?; - crate::document::store::write_path( + crate::document::view::write_path( doc, &crate::swarm::topology::dissemination_path(), &json!("plumtree"), |
