/// Put the artifact as a response to an incoming request.
Put the artifact as a response to an incoming request.
Put the artifact as a response to an incoming request .
pub async fn respond_artifact(
        &mut self,
        artifact: Vec<u8>,
        channel: ResponseChannel<ArtifactResponse>,
    ) {
        debug!("p2p::Client::respond_artifact size={:?}", artifact.len());
        self.sender
            .send(Command::RespondArtifact { artifact, channel })
            .await
            .expect("Command receiver not to be dropped.");
    }
pub async fn respond_artifact ( & mut self , artifact : Vec < u8 > , channel : ResponseChannel < ArtifactResponse > , ) { debug ! ( " " artifact len ( ) ) ; self . sender . send ( Command :: RespondArtifact { artifact , channel } ) . await . expect ( " " ) ; }
Put the artifact as a response to an incoming request.
Put the artifact as a response to an incoming request .
&mut self
artifact
Vec<u8>
channel
ResponseChannel<ArtifactResponse>