Sfoglia il codice sorgente

net: remove redundant check, the prev line does p2p.exists(host). All sessions should add to this list through Session::perform_handshake_protocols()

x 3 anni fa
parent
commit
2e1bc56371
1 ha cambiato i file con 0 aggiunte e 5 eliminazioni
  1. 0 5
      src/net/session/outbound_session.rs

+ 0 - 5
src/net/session/outbound_session.rs

@@ -318,11 +318,6 @@ impl OutboundSession {
                     continue
                     continue
                 }
                 }
 
 
-                // Check if we already have this configured as a manual peer
-                if p2p.settings().peers.contains(host) {
-                    continue
-                }
-
                 // Obtain a lock on this address to prevent duplicate connection
                 // Obtain a lock on this address to prevent duplicate connection
                 if !p2p.add_pending(host).await {
                 if !p2p.add_pending(host).await {
                     continue
                     continue