summaryrefslogtreecommitdiffstats
path: root/src/remake/mod.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
commitf12a839d6e6bdd29a86ac52d5de836519a41aaf0 (patch)
treeb34da34a22292793c991b15a95908f6cd78bb70b /src/remake/mod.rs
parent504435444c65efc59c0f7c6881991296258538a7 (diff)
wrap unix timestamps in newtype
Diffstat (limited to 'src/remake/mod.rs')
-rw-r--r--src/remake/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/remake/mod.rs b/src/remake/mod.rs
index bceb717..38c2b9c 100644
--- a/src/remake/mod.rs
+++ b/src/remake/mod.rs
@@ -62,8 +62,8 @@ pub(crate) trait Host: Clone + Send + Sync + 'static {
/// judged with it. Shared, so closures run under the document lock can read it.
fn clock(&self) -> Arc<crate::clock::Clock>;
- /// Now, in Unix milliseconds, by [`clock`](Self::clock).
- fn now_millis(&self) -> u64 {
+ /// Now, by [`clock`](Self::clock).
+ fn now_millis(&self) -> crate::clock::UnixMillis {
self.clock().now_millis()
}
@@ -78,7 +78,7 @@ pub(crate) trait Host: Clone + Send + Sync + 'static {
/// The electorate of a remake proposed now (`vote`): the members that said they are
/// alive recently enough, read from `doc`.
- fn electorate(&self, doc: &AutoCommit, now_ms: u64) -> Vec<String>;
+ fn electorate(&self, doc: &AutoCommit, now: crate::clock::UnixMillis) -> Vec<String>;
/// Downloads a change from peers on the local epoch, in chunks from several at once,
/// checked against its hash.