diff options
Diffstat (limited to 'src/remake/mod.rs')
| -rw-r--r-- | src/remake/mod.rs | 6 |
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. |
