From b2c2e7f83d163e3a593a18cff2ef66b49341b936 Mon Sep 17 00:00:00 2001 From: tycho garen Date: Thu, 16 Jun 2022 13:55:46 -0400 Subject: [PATCH] iota fix --- internal/p2p/peermanager.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/p2p/peermanager.go b/internal/p2p/peermanager.go index 6ec5b1637..b4b848eab 100644 --- a/internal/p2p/peermanager.go +++ b/internal/p2p/peermanager.go @@ -41,8 +41,7 @@ const ( type peerConnectionDirection int const ( - peerConnectionInvalid peerConnectionDirection = iota - peerConnectionIncoming + peerConnectionIncoming peerConnectionDirection = iota + 1 peerConnectionOutgoing ) @@ -457,8 +456,6 @@ func (m *PeerManager) getConnectedInfo() connectionStats { out.incoming++ case peerConnectionOutgoing: out.outgoing++ - case peerConnectionInvalid: - continue } } return out