Skip to content

Commit

Permalink
more prints
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Jun 24, 2024
1 parent d8cd390 commit 0d947da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions p2p/switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0d947da

Please sign in to comment.