diff options
| author | tv <tv@krebsco.de> | 2026-10-24 13:09:22 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-24 13:09:22 +0200 |
| commit | c01180e8716bf6a5d99411a75fbfcbc92a344771 (patch) | |
| tree | 350d462ff812033356d3be1aa41aa0cecad283d3 /src/state.rs | |
| parent | 130f1e29366f90d11f0149ecb80d8b154a130ba6 (diff) | |
introduce majority voting on remakes
Diffstat (limited to 'src/state.rs')
| -rw-r--r-- | src/state.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs index 25c734e..a47211f 100644 --- a/src/state.rs +++ b/src/state.rs @@ -1022,6 +1022,10 @@ impl Host for AppState { self.timing.dormant_after } + fn electorate(&self, doc: &AutoCommit, now_ms: u64) -> Vec<String> { + crate::swarm::members::electorate(doc, now_ms, self.electorate_window) + } + fn is_node_ready(&self) -> impl Future<Output = bool> + Send { let state = self.clone(); async move { state.is_ready().await } |
