Erik Grinaker 5 years ago
committed by GitHub
parent
commit
f146ef2528
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      p2p/switch.go

+ 0
- 3
p2p/switch.go View File

@ -320,9 +320,6 @@ func (sw *Switch) Peers() IPeerSet {
// TODO: make record depending on reason.
func (sw *Switch) StopPeerForError(peer Peer, reason interface{}) {
sw.Logger.Error("Stopping peer for error", "peer", peer, "err", reason)
if peer == nil {
return
}
sw.stopAndRemovePeer(peer, reason)
if peer.IsPersistent() {


Loading…
Cancel
Save