mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-20 03:11:14 +00:00
Remove unused cache duration parameter
This commit is contained in:
parent
6d2aef8cc0
commit
a3ff072350
3 changed files with 0 additions and 13 deletions
|
@ -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<ImageFormat>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
skip_validate_imports: Option<bool>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
cache_duration: Option<i64>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Default, serde::Serialize)]
|
||||
|
@ -503,10 +499,6 @@ struct Run {
|
|||
#[arg(long)]
|
||||
media_format: Option<ImageFormat>,
|
||||
|
||||
/// How long, in hours, to keep media ingested through the "cached" endpoint
|
||||
#[arg(long)]
|
||||
media_cache_duration: Option<i64>,
|
||||
|
||||
#[command(subcommand)]
|
||||
store: Option<RunStore>,
|
||||
}
|
||||
|
|
|
@ -72,7 +72,6 @@ struct MediaDefaults {
|
|||
video_codec: VideoCodec,
|
||||
filters: Vec<String>,
|
||||
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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,8 +117,6 @@ pub(crate) struct Media {
|
|||
pub(crate) format: Option<ImageFormat>,
|
||||
|
||||
pub(crate) skip_validate_imports: bool,
|
||||
|
||||
pub(crate) cache_duration: i64,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
|
||||
|
|
Loading…
Reference in a new issue