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/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/state/mod.rs') diff --git a/src/state/mod.rs b/src/state/mod.rs index f93bbef..438ad52 100644 --- a/src/state/mod.rs +++ b/src/state/mod.rs @@ -385,7 +385,7 @@ impl AppState { // how long the change took to reach them (`swarm::stats`). replica.doc.commit_with( automerge::transaction::CommitOptions::default() - .with_time(state.clock.now_millis() as i64), + .with_time(state.clock.now_millis().as_u64() as i64), ); } // Discard partial ops (e.g. old value deleted, new one not written). -- cgit v1.3.1