pub async fn hello_request(
        &self,
        peer_id: PeerId,
        request: HelloRequest,
    ) -> Result<(), &'static str> {
        trace!("Sending Hello Message {:?}", request);
        // TODO update to await response when we want to handle the latency
        self.network_send
            .send(NetworkMessage::HelloRequest { peer_id, request })
            .await
            .map_err(|_| "Failed to send hello request: receiver dropped")
    }
/// Send a hello request to the network (does not await response)
Send a hello request to the network (does not await response)
Send a hello request to the network ( does not await response )
pub async fn hello_request(
        &self,
        peer_id: PeerId,
        request: HelloRequest,
    ) -> Result<(), &'static str> {
        trace!("Sending Hello Message {:?}", request);
        // TODO update to await response when we want to handle the latency
        self.network_send
            .send(NetworkMessage::HelloRequest { peer_id, request })
            .await
            .map_err(|_| "Failed to send hello request: receiver dropped")
    }
pub async fn hello_request ( & self , peer_id : PeerId , request : HelloRequest , ) -> Result < ( ) , & ' static str > { trace ! ( " " request ) ; // TODO update to await response when we want to handle the latency self . network_send . send ( NetworkMessage :: HelloRequest { peer_id , request } ) . await . map_err ( | _ | " " ) }
Send a hello request to the network (does not await response)
Send a hello request to the network ( does not await response )
&self
peer_id
PeerId
request
HelloRequest