Skip to content

Commit

Permalink
removing debug changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmer committed Sep 27, 2024
1 parent 139bf9a commit 87cf6f3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions waku/node/peer_manager/peer_manager.nim
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const
PrunePeerStoreInterval = chronos.minutes(10)

# How often metrics and logs are shown/updated
LogAndMetricsInterval = chronos.seconds(15)
LogAndMetricsInterval = chronos.minutes(3)

# Max peers that we allow from the same IP
DefaultColocationLimit* = 5
Expand Down Expand Up @@ -539,9 +539,9 @@ proc new*(
storage: storage,
initialBackoffInSec: initialBackoffInSec,
backoffFactor: backoffFactor,
outRelayPeersTarget: 7,
inRelayPeersTarget: 3,
maxRelayPeers: 10,
outRelayPeersTarget: outRelayPeersTarget,
inRelayPeersTarget: maxRelayPeersValue - outRelayPeersTarget,
maxRelayPeers: maxRelayPeersValue,
maxFailedAttempts: maxFailedAttempts,
colocationLimit: colocationLimit,
shardedPeerManagement: shardedPeerManagement,
Expand Down Expand Up @@ -735,8 +735,6 @@ proc connectToRelayPeers*(pm: PeerManager) {.async.} =
let totalRelayPeers = inRelayPeers.len + outRelayPeers.len

if inRelayPeers.len > pm.inRelayPeersTarget:
notice "------------ connectToRelayPeers inRelayPeers.len > pm.inRelayPeersTarget",
inRelayPeers = inRelayPeers, inRelayPeersTarget = pm.inRelayPeersTarget
await pm.pruneInRelayConns(inRelayPeers.len - pm.inRelayPeersTarget)

if outRelayPeers.len >= pm.outRelayPeersTarget:
Expand Down

0 comments on commit 87cf6f3

Please sign in to comment.