Skip to content

Commit

Permalink
Fix judgeTask model
Browse files Browse the repository at this point in the history
  • Loading branch information
slhmy committed Jun 15, 2024
1 parent 2e6d424 commit 204fcc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions judger/src/agent/platform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 1 addition & 4 deletions judger/src/worker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit 204fcc5

Please sign in to comment.