From 7bedbda025f03fd5dfca833171c55867d8c0478e Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 31 Oct 2026 12:14:12 +0100 Subject: remake needs sane clock --- src/state/host.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/state/host.rs') diff --git a/src/state/host.rs b/src/state/host.rs index 9d77f35..912a187 100644 --- a/src/state/host.rs +++ b/src/state/host.rs @@ -82,6 +82,10 @@ impl Host for AppState { self.timing.dormant_after } + async fn clock_skew(&self) -> crate::swarm::skew::Skew { + crate::swarm::skew::measure(self).await + } + fn electorate(&self, doc: &AutoCommit, now: crate::clock::UnixMillis) -> Vec { crate::swarm::members::electorate(doc, now.as_u64(), self.electorate_window) } -- cgit v1.3.1