@@ -36,7 +36,7 @@ pub enum InvocationFinishReason {
3636/// Contains both judging task and back address.
3737/// Each task source is represented as mpsc channel of `TaskInfo`s
3838pub struct JudgeRequestAndCallbacks {
39- pub request : invoker_api :: JudgeRequest ,
39+ pub request : judging_apis :: JudgeRequest ,
4040 pub callbacks : Arc < dyn JudgeResponseCallbacks > ,
4141}
4242
@@ -62,13 +62,13 @@ pub trait JudgeResponseCallbacks: Send + Sync {
6262 async fn add_outcome_header (
6363 & self ,
6464 invocation_id : Uuid ,
65- header : invoker_api :: JudgeOutcomeHeader ,
65+ header : judging_apis :: JudgeOutcomeHeader ,
6666 ) -> anyhow:: Result < ( ) > ;
6767
6868 async fn deliver_live_status_update (
6969 & self ,
7070 invocation_id : Uuid ,
71- lsu : invoker_api :: LiveStatusUpdate ,
71+ lsu : judging_apis :: LiveStatusUpdate ,
7272 ) -> anyhow:: Result < ( ) > ;
7373}
7474
@@ -77,7 +77,7 @@ pub struct Controller {
7777 scheduler : Arc < Scheduler > ,
7878 problem_loader : Arc < problem_loader:: Loader > ,
7979 toolchains_dir : Arc < Path > ,
80- _config : Arc < crate :: config:: InvokerConfig > ,
80+ _config : Arc < crate :: config:: JudgeConfig > ,
8181 // used as RAII resource owner
8282 _temp_dir : Arc < tempfile:: TempDir > ,
8383 toolchain_loader : Arc < toolchains:: ToolchainLoader > ,
@@ -98,7 +98,7 @@ fn get_num_cpus() -> usize {
9898impl Controller {
9999 pub async fn new (
100100 cfg_data : util:: cfg:: CfgData ,
101- config : Arc < crate :: config:: InvokerConfig > ,
101+ config : Arc < crate :: config:: JudgeConfig > ,
102102 ) -> anyhow:: Result < Controller > {
103103 let worker_count = match config. workers {
104104 Some ( cnt) => cnt,
0 commit comments