fn connect_peers(&mut self, addrs: Vec<Multiaddr>) {
        let connect = ConnectionEvent::Connect {
            addrs,
            proto: DialProtocol::All,
        };

        if self.conn_tx.unbounded_send(connect).is_err() {
            error!("network: connection service offline");
        }
    }
// TODO: Store protocol in Peer or remove it? Right now, `proto`
// is ignored in ConnectionService.
Store protocol in Peer or remove it. Right now, `proto`
is ignored in ConnectionService.
Store protocol in Peer or remove it . Right now ` proto ` is ignored in ConnectionService .
fn connect_peers(&mut self, addrs: Vec<Multiaddr>) {
        let connect = ConnectionEvent::Connect {
            addrs,
            proto: DialProtocol::All,
        };
        if self.conn_tx.unbounded_send(connect).is_err() {
            error!("network: connection service offline");
        }
    }
fn connect_peers ( & mut self , addrs : Vec < Multiaddr > ) { let connect = ConnectionEvent :: Connect { addrs , proto : DialProtocol :: All , } ; if self . conn_tx . unbounded_send ( connect ) . is_err ( ) { error ! ( " " ) ; } }
TODO: Store protocol in Peer or remove it?
TODO : Store protocol in Peer or remove it?
&mut self
addrs
Vec<Multiaddr>