diff options
Diffstat (limited to 'src/remake/mod.rs')
| -rw-r--r-- | src/remake/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/remake/mod.rs b/src/remake/mod.rs index 5042ce9..c77d56d 100644 --- a/src/remake/mod.rs +++ b/src/remake/mod.rs @@ -123,6 +123,10 @@ pub(crate) trait Host: Clone + Send + Sync + 'static { /// Default basis for the voting period, and the grace margin after it. fn dormant_after(&self) -> Duration; + /// This node's clock against its peers' (`swarm::skew`): a coordinator judges the + /// remake's deadlines by it. + fn clock_skew(&self) -> impl Future<Output = crate::swarm::skew::Skew> + Send; + /// 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: crate::clock::UnixMillis) -> Vec<String>; |
