Skip to content

Commit

Permalink
fix WithOnPeersUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
distractedm1nd committed May 16, 2023
1 parent dded3cd commit eccffb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions share/p2p/peers/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ func NewManager(
return
}
if s.isRemovedPeer(peerID) {
log.Debugw("got previously removed peer from discovery", "peer", peerID)
return
s.lock.Lock()
delete(s.removedPeers, peerID)
s.lock.Unlock()
}
log.Debugw("added to full nodes", "peer", peerID)
s.fullNodes.add(peerID)
Expand Down

0 comments on commit eccffb8

Please sign in to comment.