mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-22 19:49:22 +00:00
Correct boolean NOT on is_fresh_dial
This commit is contained in:
parent
320b5627b5
commit
e01848aa9e
1 changed files with 2 additions and 2 deletions
|
@ -333,8 +333,8 @@ impl LibP2p {
|
|||
|
||||
let (is_fresh_dial, nets) = {
|
||||
let mut dialing_peers = dialing_peers.write().await;
|
||||
let is_fresh_dial = dialing_peers.contains_key(&addr);
|
||||
if !is_fresh_dial {
|
||||
let is_fresh_dial = !dialing_peers.contains_key(&addr);
|
||||
if is_fresh_dial {
|
||||
dialing_peers.insert(addr.clone(), HashSet::new());
|
||||
}
|
||||
// Associate this network with this peer
|
||||
|
|
Loading…
Reference in a new issue