Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server/src/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use structopt::StructOpt;

use crate::banner;
use crate::s3::S3Config;
use crate::storage::{ObjectStorage, ObjectStorageError};
use crate::storage::{ObjectStorage, ObjectStorageError, LOCAL_SYNC_INTERVAL};

lazy_static::lazy_static! {
#[derive(Debug)]
Expand Down Expand Up @@ -68,7 +68,7 @@ impl Config {
}

pub fn validate(&self) {
if CONFIG.parseable.upload_interval < 60 {
if CONFIG.parseable.upload_interval < LOCAL_SYNC_INTERVAL {
panic!("object storage upload_interval (P_STORAGE_UPLOAD_INTERVAL) must be 60 seconds or more");
}
}
Expand Down