From 872062ee9f0a8524bde1d589434d070b8088be10 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 20 May 2020 13:00:13 +0200 Subject: [PATCH] src/config/datastore.rs_ change prune types from i64 to u64 --- src/api2/config/datastore.rs | 12 ++++++------ src/config/datastore.rs | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/api2/config/datastore.rs b/src/api2/config/datastore.rs index 7ab36047..7bb13c4b 100644 --- a/src/api2/config/datastore.rs +++ b/src/api2/config/datastore.rs @@ -243,12 +243,12 @@ pub fn update_datastore( comment: Option, gc_schedule: Option, prune_schedule: Option, - keep_last: Option, - keep_hourly: Option, - keep_daily: Option, - keep_weekly: Option, - keep_monthly: Option, - keep_yearly: Option, + keep_last: Option, + keep_hourly: Option, + keep_daily: Option, + keep_weekly: Option, + keep_monthly: Option, + keep_yearly: Option, delete: Option>, digest: Option, ) -> Result<(), Error> { diff --git a/src/config/datastore.rs b/src/config/datastore.rs index 5c46e07f..5fe55c72 100644 --- a/src/config/datastore.rs +++ b/src/config/datastore.rs @@ -83,17 +83,17 @@ pub struct DataStoreConfig { #[serde(skip_serializing_if="Option::is_none")] pub prune_schedule: Option, #[serde(skip_serializing_if="Option::is_none")] - pub keep_last: Option, + pub keep_last: Option, #[serde(skip_serializing_if="Option::is_none")] - pub keep_hourly: Option, + pub keep_hourly: Option, #[serde(skip_serializing_if="Option::is_none")] - pub keep_daily: Option, + pub keep_daily: Option, #[serde(skip_serializing_if="Option::is_none")] - pub keep_weekly: Option, + pub keep_weekly: Option, #[serde(skip_serializing_if="Option::is_none")] - pub keep_monthly: Option, + pub keep_monthly: Option, #[serde(skip_serializing_if="Option::is_none")] - pub keep_yearly: Option, + pub keep_yearly: Option, } fn init() -> SectionConfig {