diff options
| author | tv <tv@krebsco.de> | 2026-10-31 12:14:12 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-31 12:14:12 +0100 |
| commit | 7bedbda025f03fd5dfca833171c55867d8c0478e (patch) | |
| tree | 81951cc1de4019283ba8a7c1abf08bcafe64b7d9 /src/remake/mod.rs | |
| parent | 210e40178082f485d46bdcdaaf433356f7c9919a (diff) | |
remake needs sane clock
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>; |
