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 | 9ec95a06e109595a7a3408f567970a5ecad99414 (patch) | |
| tree | 41a849c3fc8085bc9411d25bd7eb164ba7a6248e /src/remake/mod.rs | |
| parent | 7b19dfcb9a3eb3424bad0b95c13dac2fdebafd9c (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>; |
