src/config/datastore.rs_ change prune types from i64 to u64

This commit is contained in:
Dietmar Maurer 2020-05-20 13:00:13 +02:00
parent 67f7ffd0db
commit 872062ee9f
2 changed files with 12 additions and 12 deletions

View File

@ -243,12 +243,12 @@ pub fn update_datastore(
comment: Option<String>,
gc_schedule: Option<String>,
prune_schedule: Option<String>,
keep_last: Option<i64>,
keep_hourly: Option<i64>,
keep_daily: Option<i64>,
keep_weekly: Option<i64>,
keep_monthly: Option<i64>,
keep_yearly: Option<i64>,
keep_last: Option<u64>,
keep_hourly: Option<u64>,
keep_daily: Option<u64>,
keep_weekly: Option<u64>,
keep_monthly: Option<u64>,
keep_yearly: Option<u64>,
delete: Option<Vec<DeletableProperty>>,
digest: Option<String>,
) -> Result<(), Error> {

View File

@ -83,17 +83,17 @@ pub struct DataStoreConfig {
#[serde(skip_serializing_if="Option::is_none")]
pub prune_schedule: Option<String>,
#[serde(skip_serializing_if="Option::is_none")]
pub keep_last: Option<i64>,
pub keep_last: Option<u64>,
#[serde(skip_serializing_if="Option::is_none")]
pub keep_hourly: Option<i64>,
pub keep_hourly: Option<u64>,
#[serde(skip_serializing_if="Option::is_none")]
pub keep_daily: Option<i64>,
pub keep_daily: Option<u64>,
#[serde(skip_serializing_if="Option::is_none")]
pub keep_weekly: Option<i64>,
pub keep_weekly: Option<u64>,
#[serde(skip_serializing_if="Option::is_none")]
pub keep_monthly: Option<i64>,
pub keep_monthly: Option<u64>,
#[serde(skip_serializing_if="Option::is_none")]
pub keep_yearly: Option<i64>,
pub keep_yearly: Option<u64>,
}
fn init() -> SectionConfig {