Skip to content

Commit

Permalink
Use Correct Peer Status Method (#8471)
Browse files Browse the repository at this point in the history
  • Loading branch information
nisdas authored Feb 18, 2021
1 parent 4f9752b commit 917252d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon-chain/p2p/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func (s *Service) isPeerAtLimit(inbound bool) bool {
if inbound {
maxPeers += highWatermarkBuffer
maxInbound := s.peers.InboundLimit() + highWatermarkBuffer
currInbound := len(s.peers.Inbound())
currInbound := len(s.peers.InboundConnected())
// Exit early if we are at the inbound limit.
if currInbound >= maxInbound {
return true
Expand Down

0 comments on commit 917252d

Please sign in to comment.