func (p *ProtocolHandler) HandlePeerFound(pi peer.AddrInfo) {
	if pi.ID == p.host.GetHost().ID() {
		return
	}
	if len(pi.Addrs) > 0 && p.shouldConnectOutgoing() {
		logrus.WithField("forProto", p.ID)
		err := p.connManager.Connect(pi)
		if err != nil {
			logrus.WithField("forProto", p.ID).Error(err)
		}
	}
}
// HandlePeerFound handles any discovered peers.
HandlePeerFound handles any discovered peers.
// HandlePeerFound handles any discovered peers .
func (p *ProtocolHandler) HandlePeerFound(pi peer.AddrInfo) {
	if pi.ID == p.host.GetHost().ID() {
		return
	}
	if len(pi.Addrs) > 0 && p.shouldConnectOutgoing() {
		logrus.WithField("forProto", p.ID)
		err := p.connManager.Connect(pi)
		if err != nil {
			logrus.WithField("forProto", p.ID).Error(err)
		}
	}
}
func ( p * ProtocolHandler ) HandlePeerFound ( pi peer . AddrInfo ) { if pi . ID == p . host . GetHost ( ) . ID ( ) { return } if len ( pi . Addrs ) > 0 && p . shouldConnectOutgoing ( ) { logrus . WithField ( " " , p . ID ) err := p . connManager . Connect ( pi ) if err != nil { logrus . WithField ( " " , p . ID ) . Error ( err ) } } }
HandlePeerFound handles any discovered peers.
HandlePeerFound handles any discovered peers .