aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/sync.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-26 05:38:41 +0100
committertv <tv@krebsco.de>2026-10-26 05:38:41 +0100
commit771665daeb95f7f136545f8768c31003a82823d6 (patch)
treede3dfa27601f06a7155164ef7feefd7c4a0720f2 /src/swarm/sync.rs
parente69f05d182718621e97f0662de5f05105658d96e (diff)
wrap unix timestamps in newtype
Diffstat (limited to 'src/swarm/sync.rs')
-rw-r--r--src/swarm/sync.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/swarm/sync.rs b/src/swarm/sync.rs
index 07f66a3..805d700 100644
--- a/src/swarm/sync.rs
+++ b/src/swarm/sync.rs
@@ -336,7 +336,7 @@ pub(crate) async fn handle_sync(
stats.heads_seen(heads_after.len());
let changed = heads_after != heads_before;
if changed && measure_propagation {
- let now_ms = clock.now_millis() as i64;
+ let now_ms = clock.now_millis().as_u64() as i64;
// Time 0: not stamped (snapshots, older nodes).
let delays: Vec<i64> = replica
.doc