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/state | |
| parent | 210e40178082f485d46bdcdaaf433356f7c9919a (diff) | |
remake needs sane clock
Diffstat (limited to 'src/state')
| -rw-r--r-- | src/state/host.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state/host.rs b/src/state/host.rs index 9d77f35..912a187 100644 --- a/src/state/host.rs +++ b/src/state/host.rs @@ -82,6 +82,10 @@ impl Host for AppState { self.timing.dormant_after } + async fn clock_skew(&self) -> crate::swarm::skew::Skew { + crate::swarm::skew::measure(self).await + } + fn electorate(&self, doc: &AutoCommit, now: crate::clock::UnixMillis) -> Vec<String> { crate::swarm::members::electorate(doc, now.as_u64(), self.electorate_window) } |
