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 | 32808e43fd919b7f0326487eeb7c100a327c26c0 (patch) | |
| tree | 49b7abccef4d06b70335f0360ba70a6ed4b1909c /src/remake/mod.rs | |
| parent | 0d83f1691a81c6125cfb33977173c0fde7c572d6 (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 7dc11d0..adc4429 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>; |
