aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/stability.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/swarm/stability.rs')
-rw-r--r--src/swarm/stability.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/swarm/stability.rs b/src/swarm/stability.rs
index 8163e06..c163778 100644
--- a/src/swarm/stability.rs
+++ b/src/swarm/stability.rs
@@ -178,7 +178,11 @@ pub(crate) async fn tick(state: &AppState) {
return;
}
let local = state.local_id().to_owned();
- let current = members::tier(&state.doc.read().await.doc, &local);
+ let entries = state.entries();
+ let current = members::tier(
+ &crate::document::view::members_of(&entries, &state.doc.read().await.doc),
+ &local,
+ );
let desired = {
let mut stability = lock(state);