summaryrefslogtreecommitdiffstats
path: root/src/simtest
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-26 04:55:06 +0100
committertv <tv@krebsco.de>2026-10-26 04:55:06 +0100
commit28400cef36578e5364e8497c9b77618ca0da084b (patch)
tree4d55999673d8e5097dc8481f637c93ec6f4f671c /src/simtest
parent2646e19cf29b410f542097d75e620116c96da96b (diff)
SyncSessions owns Automerge's sync state
Diffstat (limited to 'src/simtest')
-rw-r--r--src/simtest/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simtest/mod.rs b/src/simtest/mod.rs
index 26092ee..e7fc719 100644
--- a/src/simtest/mod.rs
+++ b/src/simtest/mod.rs
@@ -219,11 +219,11 @@ impl Sim {
ago(p.last_seen),
ago(p.last_sync_rx),
p.is_unreachable(&node.timing, now),
- p.sync.state.their_heads.as_ref().map(|heads| heads
+ p.sync.automerge_view().0.map(|heads| heads
.iter()
.map(|head| head.to_string()[..8].to_owned())
.collect::<Vec<_>>()),
- p.sync.state.in_flight,
+ p.sync.automerge_view().1,
p.sync.sending.is_some(),
p.sync
.reply