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 | c32d3ef7bda4353875f28c6ce09f3dce736c4ced (patch) | |
| tree | a6e53a6a71a487f61fcbcb42d50a428ebb30d630 /src/swarm/sync.rs | |
| parent | 9d95468df589f34309d1e1cd30ce614b8063a0c8 (diff) | |
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 d82238e..2c2079a 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(), |
