From f12a839d6e6bdd29a86ac52d5de836519a41aaf0 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 26 Oct 2026 05:38:41 +0100 Subject: wrap unix timestamps in newtype --- src/state/host.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/state/host.rs') diff --git a/src/state/host.rs b/src/state/host.rs index fd40bf3..6506274 100644 --- a/src/state/host.rs +++ b/src/state/host.rs @@ -85,8 +85,8 @@ impl Host for AppState { self.timing.dormant_after } - fn electorate(&self, doc: &AutoCommit, now_ms: u64) -> Vec { - crate::swarm::members::electorate(doc, now_ms, self.electorate_window) + fn electorate(&self, doc: &AutoCommit, now: crate::clock::UnixMillis) -> Vec { + crate::swarm::members::electorate(doc, now.as_u64(), self.electorate_window) } fn fetch_change( -- cgit v1.3.1