diff options
Diffstat (limited to 'src/swarm/relay.rs')
| -rw-r--r-- | src/swarm/relay.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/swarm/relay.rs b/src/swarm/relay.rs index 2fa5f5f..b1cc0a7 100644 --- a/src/swarm/relay.rs +++ b/src/swarm/relay.rs @@ -194,7 +194,7 @@ pub(crate) async fn pull_if_behind( pub(crate) fn pulled(state: &AppState, peer: &str) { { let mut pulling = state.pulling.lock_or_recover(); - if !pulling.current.as_ref().is_some_and(|(p, _)| p == peer) { + if pulling.current.as_ref().is_none_or(|(p, _)| p != peer) { return; } pulling.current = None; |
