diff --git a/judger/src/agent/platform/mod.rs b/judger/src/agent/platform/mod.rs index 8ccc159..ac7318e 100644 --- a/judger/src/agent/platform/mod.rs +++ b/judger/src/agent/platform/mod.rs @@ -27,8 +27,8 @@ impl PlatformClient { #[derive(Deserialize, Debug, Clone)] pub struct JudgeTask { - #[serde(rename = "submissionUID")] - pub submission_uid: String, + #[serde(rename = "judgeUID")] + pub judge_uid: String, #[serde(rename = "problemSlug")] pub problem_slug: String, pub code: String, diff --git a/judger/src/worker/mod.rs b/judger/src/worker/mod.rs index 70358a8..c595eff 100644 --- a/judger/src/worker/mod.rs +++ b/judger/src/worker/mod.rs @@ -84,10 +84,7 @@ impl JudgeWorker { ); return; } - log::info!( - "Submission {:?} report success", - task.submission_uid.clone() - ); + log::info!("judge {:?} report success", task.judge_uid.clone()); } Err(e) => log::info!("Error judge task: {:?}", e), }