Skip to content

Commit ae53850

Browse files
authored
Use correct environment variable for validation (#62)
1 parent 3151707 commit ae53850

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/option.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use structopt::StructOpt;
2323

2424
use crate::banner;
2525
use crate::s3::S3Config;
26-
use crate::storage::{ObjectStorage, ObjectStorageError};
26+
use crate::storage::{ObjectStorage, ObjectStorageError, LOCAL_SYNC_INTERVAL};
2727

2828
lazy_static::lazy_static! {
2929
#[derive(Debug)]
@@ -68,7 +68,7 @@ impl Config {
6868
}
6969

7070
pub fn validate(&self) {
71-
if CONFIG.parseable.upload_interval < 60 {
71+
if CONFIG.parseable.upload_interval < LOCAL_SYNC_INTERVAL {
7272
panic!("object storage upload_interval (P_STORAGE_UPLOAD_INTERVAL) must be 60 seconds or more");
7373
}
7474
}

0 commit comments

Comments
 (0)