diff --git a/judger/src/client/environment/.env.development b/judger/src/client/environment/.env.development index c85ad28..bdbf771 100644 --- a/judger/src/client/environment/.env.development +++ b/judger/src/client/environment/.env.development @@ -1,2 +1,3 @@ BASE_URL="http://localhost:8080/api/v1/judge" +INTERVAL=10 RUST_LOG=DEBUG \ No newline at end of file diff --git a/judger/src/client/environment/mod.rs b/judger/src/client/environment/mod.rs index 152288f..efc681f 100644 --- a/judger/src/client/environment/mod.rs +++ b/judger/src/client/environment/mod.rs @@ -9,6 +9,9 @@ pub struct JudgeClientOpt { /// Port to listen to #[structopt(env = "BASE_URL", default_value = "http://localhost:8080/api/v1/judge")] pub base_url: String, + + #[structopt(env = "INTERVAL", default_value = "10")] + pub interval: i32, } pub fn load_option() -> JudgeClientOpt {