async fn create_fake_protocols(
        &mut self,
        req: &LoweredJudgeRequest,
        status: &invoker_api::Status,
    ) -> anyhow::Result<()> {
        for kind in invoker_api::judge_log::JudgeLogKind::list() {
            let pseudo_valuer_proto = invoker_api::valuer_proto::JudgeLog {
                kind,
                tests: vec![],
                subtasks: vec![],
                score: 0,
                is_full: false,
            };
            let mut protocol = self.process_judge_log(&pseudo_valuer_proto, req, &[])?;
            protocol.status = status.clone();
            self.put_protocol(req, protocol).await?;
        }
        Ok(())
    }
/// Used when we are unable to produce protocols, i.e. on compilation errors
/// and judge faults.
Used when we are unable to produce protocols, i.e. on compilation errors
and judge faults.
Used when we are unable to produce protocols i . e . on compilation errors and judge faults .
async fn create_fake_protocols(
        &mut self,
        req: &LoweredJudgeRequest,
        status: &invoker_api::Status,
    ) -> anyhow::Result<()> {
        for kind in invoker_api::judge_log::JudgeLogKind::list() {
            let pseudo_valuer_proto = invoker_api::valuer_proto::JudgeLog {
                kind,
                tests: vec![],
                subtasks: vec![],
                score: 0,
                is_full: false,
            };
            let mut protocol = self.process_judge_log(&pseudo_valuer_proto, req, &[])?;
            protocol.status = status.clone();
            self.put_protocol(req, protocol).await?;
        }
        Ok(())
    }
async fn create_fake_protocols ( & mut self , req : & LoweredJudgeRequest , status : & invoker_api :: Status , ) -> anyhow :: Result < ( ) > { for kind in invoker_api :: judge_log :: JudgeLogKind :: list ( ) { let pseudo_valuer_proto = invoker_api :: valuer_proto :: JudgeLog { kind , tests : vec ! [ ] , subtasks : vec ! [ ] , score : 0 , is_full : false , } ; let mut protocol = self . process_judge_log ( & pseudo_valuer_proto , req , & [ ] ) ? ; protocol . status = status . clone ( ) ; self . put_protocol ( req , protocol ) . await ? ; } Ok ( ( ) ) }
Used when we are unable to produce protocols, i.e.
Used when we are unable to produce protocols i . e .
&mut self
req
&LoweredJudgeRequest
status
&invoker_api::Status