pub fn send_to_many(
        &mut self,
        recipients: impl Iterator<Item = PeerId>,
        message: ConsensusMsg<T>,
    ) -> Result<(), NetworkError> {
        let protocol = ProtocolId::ConsensusDirectSend;
        self.network_sender
            .send_to_many(recipients, protocol, message)
    }
/// Send a single message to the destination peers using the `CONSENSUS_DIRECT_SEND_PROTOCOL`
/// ProtocolId.
Send a single message to the destination peers using the `CONSENSUS_DIRECT_SEND_PROTOCOL`
ProtocolId.
Send a single message to the destination peers using the ` CONSENSUS_DIRECT_SEND_PROTOCOL ` ProtocolId .
pub fn send_to_many(
        &mut self,
        recipients: impl Iterator<Item = PeerId>,
        message: ConsensusMsg<T>,
    ) -> Result<(), NetworkError> {
        let protocol = ProtocolId::ConsensusDirectSend;
        self.network_sender
            .send_to_many(recipients, protocol, message)
    }
pub fn send_to_many ( & mut self , recipients : impl Iterator < Item = PeerId > , message : ConsensusMsg < T > , ) -> Result < ( ) , NetworkError > { let protocol = ProtocolId :: ConsensusDirectSend ; self . network_sender . send_to_many ( recipients , protocol , message ) }
Send a single message to the destination peers using the `CONSENSUS_DIRECT_SEND_PROTOCOL`
ProtocolId.
Send a single message to the destination peers using the ` CONSENSUS_DIRECT_SEND_PROTOCOL ` ProtocolId .
&mut self
recipients
impl Iterator<Item = PeerId>
message
ConsensusMsg<T>
&mut self
recipients
impl Iterator<Item = PeerId>
message
ConsensusMsg<T>