Rename RELOAD_INTERVAL_SECONDS to CHECK_INTERVAL_SECONDS

This commit is contained in:
Neshura 2023-12-28 22:26:59 +01:00
parent e1c81bb404
commit cf46f1124a
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -248,7 +248,7 @@ fn main() {
Err(e) => panic!("{}", e) Err(e) => panic!("{}", e)
}; };
let reload_interval = match env::var("RELOAD_INTERVAL_SECONDS") { let reload_interval = match env::var("CHECK_INTERVAL_SECONDS") {
Ok(interval_string) => i64::from_str(&interval_string).unwrap_or_else(|e| { Ok(interval_string) => i64::from_str(&interval_string).unwrap_or_else(|e| {
let warn_msg = format!("Expected integer number, got '{interval_string}'. Defaulting to 60"); let warn_msg = format!("Expected integer number, got '{interval_string}'. Defaulting to 60");
match connected_to_journal() { match connected_to_journal() {