diff --git a/p2p/switch.go b/p2p/switch.go index 22307bd91..eba8679e7 100644 --- a/p2p/switch.go +++ b/p2p/switch.go @@ -570,7 +570,7 @@ func (sw *Switch) addPeer(pc peerConn) error { // and add to our addresses to avoid dialing again sw.addrBook.RemoveAddress(addr) sw.addrBook.AddOurAddress(addr) - return ErrSwitchConnectToSelf{addr} + return ErrSwitchConnectToSelf{} } // Avoid duplicate