From a3ff072350e2d6cd866832c970fbf2dcb9d295cb Mon Sep 17 00:00:00 2001 From: asonix Date: Wed, 21 Jun 2023 17:05:53 -0500 Subject: [PATCH] Remove unused cache duration parameter --- src/config/commandline.rs | 8 -------- src/config/defaults.rs | 3 --- src/config/file.rs | 2 -- 3 files changed, 13 deletions(-) diff --git a/src/config/commandline.rs b/src/config/commandline.rs index 7a73223..6556a58 100644 --- a/src/config/commandline.rs +++ b/src/config/commandline.rs @@ -61,7 +61,6 @@ impl Args { media_audio_codec, media_filters, media_format, - media_cache_duration, store, }) => { let server = Server { @@ -96,7 +95,6 @@ impl Args { audio_codec: media_audio_codec, filters: media_filters, format: media_format, - cache_duration: media_cache_duration, }; let operation = Operation::Run; @@ -360,8 +358,6 @@ struct Media { format: Option, #[serde(skip_serializing_if = "Option::is_none")] skip_validate_imports: Option, - #[serde(skip_serializing_if = "Option::is_none")] - cache_duration: Option, } #[derive(Debug, Default, serde::Serialize)] @@ -503,10 +499,6 @@ struct Run { #[arg(long)] media_format: Option, - /// How long, in hours, to keep media ingested through the "cached" endpoint - #[arg(long)] - media_cache_duration: Option, - #[command(subcommand)] store: Option, } diff --git a/src/config/defaults.rs b/src/config/defaults.rs index 75a225d..6240279 100644 --- a/src/config/defaults.rs +++ b/src/config/defaults.rs @@ -72,7 +72,6 @@ struct MediaDefaults { video_codec: VideoCodec, filters: Vec, skip_validate_imports: bool, - cache_duration: i64, } #[derive(Clone, Debug, serde::Serialize)] @@ -176,8 +175,6 @@ impl Default for MediaDefaults { "thumbnail".into(), ], skip_validate_imports: false, - // one week (in hours) - cache_duration: 24 * 7, } } } diff --git a/src/config/file.rs b/src/config/file.rs index 67efcb0..7cfd5a1 100644 --- a/src/config/file.rs +++ b/src/config/file.rs @@ -117,8 +117,6 @@ pub(crate) struct Media { pub(crate) format: Option, pub(crate) skip_validate_imports: bool, - - pub(crate) cache_duration: i64, } #[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]