diff options
| author | tv <tv@krebsco.de> | 2026-10-23 13:21:12 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-23 13:21:12 +0200 |
| commit | 2945e28e92a3ef6b42e279921572595bd883ae2a (patch) | |
| tree | 2ef262c4f0e0b54ac38d507ff6b21ab71af9b459 /src/swarm/sync.rs | |
| parent | 1c32f4534c88304205e2de6d5d0c33a8bb0162d9 (diff) | |
pick pair leader by hash instead of key order
Diffstat (limited to 'src/swarm/sync.rs')
| -rw-r--r-- | src/swarm/sync.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/swarm/sync.rs b/src/swarm/sync.rs index 15b4ced..57f42e7 100644 --- a/src/swarm/sync.rs +++ b/src/swarm/sync.rs @@ -63,7 +63,7 @@ async fn deliver_sync_to_peer(state: &AppState, peer: &str, retry_delivery: bool }; if !retry_delivery { - let we_open = state.local_id() < peer; + let we_open = crate::swarm::pair::leads(state.local_id(), peer); if let Some(wait) = peer_state.opening_wait(we_open, Instant::now()) { trace!( wait_ms = wait.as_millis(), |
