diff options
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 } |
