From 0d947da754472b9e9e0137a713b36eb3b20cec2b Mon Sep 17 00:00:00 2001 From: Adam Tucker Date: Mon, 24 Jun 2024 14:55:27 -0600 Subject: [PATCH] more prints --- p2p/switch.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/p2p/switch.go b/p2p/switch.go index c95501f11c9..e838bdc22af 100644 --- a/p2p/switch.go +++ b/p2p/switch.go @@ -805,6 +805,9 @@ func (sw *Switch) acceptRoutine() { continue } } else { + fmt.Println("in", in) + fmt.Println("sw.CurrentNumInboundPeersInOtherRegion", sw.CurrentNumInboundPeersInOtherRegion) + fmt.Println("isSameRegion maxInboundPeersInSameRegion", maxInboundPeersInSameRegion) if (in-sw.CurrentNumInboundPeersInOtherRegion)+1 > maxInboundPeersInSameRegion { sw.Logger.Error("exceeds max percent peers in same region") continue @@ -817,6 +820,8 @@ func (sw *Switch) acceptRoutine() { continue } } else { + fmt.Println("sw.CurrentNumInboundPeersInOtherRegion", sw.CurrentNumInboundPeersInOtherRegion) + fmt.Println("!isSameRegion maxInboundPeersInOtherRegion", maxInboundPeersInOtherRegion) if sw.CurrentNumInboundPeersInOtherRegion+1 > maxInboundPeersInOtherRegion { sw.Logger.Error("exceeds max percent peers in other regions") continue