func (p *ProtocolHandler) Connected(net network.Network, conn network.Conn) {
	if conn.Stat().Direction != network.DirOutbound {
		return
	}

	_ = p.host.OpenStreams(conn.RemotePeer(), p.ID)
}
// Connected is called when we connect to a peer.
Connected is called when we connect to a peer.
// Connected is called when we connect to a peer .
func (p *ProtocolHandler) Connected(net network.Network, conn network.Conn) {
	if conn.Stat().Direction != network.DirOutbound {
		return
	}
	_ = p.host.OpenStreams(conn.RemotePeer(), p.ID)
}
func ( p * ProtocolHandler ) Connected ( net network . Network , conn network . Conn ) { if conn . Stat ( ) . Direction != network . DirOutbound { return } _ = p . host . OpenStreams ( conn . RemotePeer ( ) , p . ID ) }
Connected is called when we connect to a peer.
Connected is called when we connect to a peer .