fn remove_unvalidated(
        &mut self,
        message_id: &IngressMessageId,
    ) -> Option<(UnvalidatedIngressArtifact, usize)> {
        match self.unvalidated.remove(message_id) {
            Some(unvalidated_artifact) => {
                let size = unvalidated_artifact.message.signed_ingress.count_bytes();
                self.peer_index.remove(unvalidated_artifact.peer_id, size);
                Some((unvalidated_artifact, size))
            }
            None => {
                trace!(self.log, "Did not find artifact in peer_index");
                None
            }
        }
    }
/// Remove an artifact from unvalidated pool and remove it from peer_index
/// Return the removed artifact and its size.
Remove an artifact from unvalidated pool and remove it from peer_index
Return the removed artifact and its size.
Remove an artifact from unvalidated pool and remove it from peer_index Return the removed artifact and its size .
fn remove_unvalidated(
        &mut self,
        message_id: &IngressMessageId,
    ) -> Option<(UnvalidatedIngressArtifact, usize)> {
        match self.unvalidated.remove(message_id) {
            Some(unvalidated_artifact) => {
                let size = unvalidated_artifact.message.signed_ingress.count_bytes();
                self.peer_index.remove(unvalidated_artifact.peer_id, size);
                Some((unvalidated_artifact, size))
            }
            None => {
                trace!(self.log, "Did not find artifact in peer_index");
                None
            }
        }
    }
fn remove_unvalidated ( & mut self , message_id : & IngressMessageId , ) -> Option < ( UnvalidatedIngressArtifact , usize ) > { match self . unvalidated . remove ( message_id ) { Some ( unvalidated_artifact ) => { let size = unvalidated_artifact . message . signed_ingress . count_bytes ( ) ; self . peer_index . remove ( unvalidated_artifact . peer_id , size ) ; Some ( ( unvalidated_artifact , size ) ) } None => { trace ! ( self log " " ) ; None } } }
Remove an artifact from unvalidated pool and remove it from peer_index
Return the removed artifact and its size.
Remove an artifact from unvalidated pool and remove it from peer_index Return the removed artifact and its size .
&mut self
message_id
&IngressMessageId
&mut self
message_id
&IngressMessageId