From 204fcc5f2b2dbedd23de92fa30f0a306c876e35b Mon Sep 17 00:00:00 2001 From: slhmy Date: Sat, 15 Jun 2024 20:31:14 +0800 Subject: [PATCH] Fix judgeTask model --- judger/src/agent/platform/mod.rs | 4 ++-- judger/src/worker/mod.rs | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) 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), }