We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3151707 commit ae53850Copy full SHA for ae53850
server/src/option.rs
@@ -23,7 +23,7 @@ use structopt::StructOpt;
23
24
use crate::banner;
25
use crate::s3::S3Config;
26
-use crate::storage::{ObjectStorage, ObjectStorageError};
+use crate::storage::{ObjectStorage, ObjectStorageError, LOCAL_SYNC_INTERVAL};
27
28
lazy_static::lazy_static! {
29
#[derive(Debug)]
@@ -68,7 +68,7 @@ impl Config {
68
}
69
70
pub fn validate(&self) {
71
- if CONFIG.parseable.upload_interval < 60 {
+ if CONFIG.parseable.upload_interval < LOCAL_SYNC_INTERVAL {
72
panic!("object storage upload_interval (P_STORAGE_UPLOAD_INTERVAL) must be 60 seconds or more");
73
74
0 commit comments