mirror of https://github.com/waku-org/nwaku.git
pruning excess in relay connections (#2965)
This commit is contained in:
parent
71d4a11647
commit
54b5222222
|
@ -734,9 +734,8 @@ proc connectToRelayPeers*(pm: PeerManager) {.async.} =
|
|||
let totalRelayPeers = inRelayPeers.len + outRelayPeers.len
|
||||
let inPeersTarget = maxConnections - pm.outRelayPeersTarget
|
||||
|
||||
# TODO: Temporally disabled. Might be causing connection issues
|
||||
#if inRelayPeers.len > pm.inRelayPeersTarget:
|
||||
# await pm.pruneInRelayConns(inRelayPeers.len - pm.inRelayPeersTarget)
|
||||
if inRelayPeers.len > pm.inRelayPeersTarget:
|
||||
await pm.pruneInRelayConns(inRelayPeers.len - pm.inRelayPeersTarget)
|
||||
|
||||
if outRelayPeers.len >= pm.outRelayPeersTarget:
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue