src/config/datastore.rs_ change prune types from i64 to u64
This commit is contained in:
parent
67f7ffd0db
commit
872062ee9f
@ -243,12 +243,12 @@ pub fn update_datastore(
|
|||||||
comment: Option<String>,
|
comment: Option<String>,
|
||||||
gc_schedule: Option<String>,
|
gc_schedule: Option<String>,
|
||||||
prune_schedule: Option<String>,
|
prune_schedule: Option<String>,
|
||||||
keep_last: Option<i64>,
|
keep_last: Option<u64>,
|
||||||
keep_hourly: Option<i64>,
|
keep_hourly: Option<u64>,
|
||||||
keep_daily: Option<i64>,
|
keep_daily: Option<u64>,
|
||||||
keep_weekly: Option<i64>,
|
keep_weekly: Option<u64>,
|
||||||
keep_monthly: Option<i64>,
|
keep_monthly: Option<u64>,
|
||||||
keep_yearly: Option<i64>,
|
keep_yearly: Option<u64>,
|
||||||
delete: Option<Vec<DeletableProperty>>,
|
delete: Option<Vec<DeletableProperty>>,
|
||||||
digest: Option<String>,
|
digest: Option<String>,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
|
@ -83,17 +83,17 @@ pub struct DataStoreConfig {
|
|||||||
#[serde(skip_serializing_if="Option::is_none")]
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
pub prune_schedule: Option<String>,
|
pub prune_schedule: Option<String>,
|
||||||
#[serde(skip_serializing_if="Option::is_none")]
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
pub keep_last: Option<i64>,
|
pub keep_last: Option<u64>,
|
||||||
#[serde(skip_serializing_if="Option::is_none")]
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
pub keep_hourly: Option<i64>,
|
pub keep_hourly: Option<u64>,
|
||||||
#[serde(skip_serializing_if="Option::is_none")]
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
pub keep_daily: Option<i64>,
|
pub keep_daily: Option<u64>,
|
||||||
#[serde(skip_serializing_if="Option::is_none")]
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
pub keep_weekly: Option<i64>,
|
pub keep_weekly: Option<u64>,
|
||||||
#[serde(skip_serializing_if="Option::is_none")]
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
pub keep_monthly: Option<i64>,
|
pub keep_monthly: Option<u64>,
|
||||||
#[serde(skip_serializing_if="Option::is_none")]
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
pub keep_yearly: Option<i64>,
|
pub keep_yearly: Option<u64>,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn init() -> SectionConfig {
|
fn init() -> SectionConfig {
|
||||||
|
Loading…
Reference in New Issue
Block a user