pub fn send_chain_exchange_request(
        &mut self,
        peer_id: &PeerId,
        request: ChainExchangeRequest,
        response_channel: OneShotSender<Result<ChainExchangeResponse, RequestResponseError>>,
    ) {
        let req_id = self.chain_exchange.send_request(peer_id, request);
        self.cx_request_table.insert(req_id, response_channel);
    }
/// Send a chain exchange request or response to some peer.
Send a chain exchange request or response to some peer.
Send a chain exchange request or response to some peer .
pub fn send_chain_exchange_request(
        &mut self,
        peer_id: &PeerId,
        request: ChainExchangeRequest,
        response_channel: OneShotSender<Result<ChainExchangeResponse, RequestResponseError>>,
    ) {
        let req_id = self.chain_exchange.send_request(peer_id, request);
        self.cx_request_table.insert(req_id, response_channel);
    }
pub fn send_chain_exchange_request ( & mut self , peer_id : & PeerId , request : ChainExchangeRequest , response_channel : OneShotSender < Result < ChainExchangeResponse , RequestResponseError > > , ) { let req_id = self . chain_exchange . send_request ( peer_id , request ) ; self . cx_request_table . insert ( req_id , response_channel ) ; }
Send a chain exchange request or response to some peer.
Send a chain exchange request or response to some peer .
&mut self
peer_id
&PeerId
request
ChainExchangeRequest
response_channel
OneShotSender<Result<ChainExchangeResponse, RequestResponseError>>