fn inject_connected(&mut self, peer_id: &PeerId) {
        // find the peer's meta-data
        debug!(self.log, "Requesting new peer's metadata"; "peer_id" => format!("{}",peer_id));
        let rpc_event = RPCSend::Request(RequestId::Behaviour, RPCRequest::MetaData);
        self.events.push(NetworkBehaviourAction::NotifyHandler {
            peer_id: peer_id.clone(),
            handler: NotifyHandler::Any,
            event: rpc_event,
        });
    }
// Use connection established/closed instead of these currently
Use connection established/closed instead of these currently
Use connection established / closed instead of these currently
fn inject_connected(&mut self, peer_id: &PeerId) {
        // find the peer's meta-data
        debug!(self.log, "Requesting new peer's metadata"; "peer_id" => format!("{}",peer_id));
        let rpc_event = RPCSend::Request(RequestId::Behaviour, RPCRequest::MetaData);
        self.events.push(NetworkBehaviourAction::NotifyHandler {
            peer_id: peer_id.clone(),
            handler: NotifyHandler::Any,
            event: rpc_event,
        });
    }
fn inject_connected ( & mut self , peer_id : & PeerId ) { // find the peer's meta-data debug ! ( self log " " " " format ( " " peer_id ) ) ; let rpc_event = RPCSend :: Request ( RequestId :: Behaviour , RPCRequest :: MetaData ) ; self . events . push ( NetworkBehaviourAction :: NotifyHandler { peer_id : peer_id . clone ( ) , handler : NotifyHandler :: Any , event : rpc_event , } ) ; }
Use connection established/closed instead of these currently
Use connection established / closed instead of these currently
&mut self
peer_id
&PeerId
&mut self
peer_id
&PeerId