mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +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_audio_codec,
|
||||||
media_filters,
|
media_filters,
|
||||||
media_format,
|
media_format,
|
||||||
media_cache_duration,
|
|
||||||
store,
|
store,
|
||||||
}) => {
|
}) => {
|
||||||
let server = Server {
|
let server = Server {
|
||||||
|
@ -96,7 +95,6 @@ impl Args {
|
||||||
audio_codec: media_audio_codec,
|
audio_codec: media_audio_codec,
|
||||||
filters: media_filters,
|
filters: media_filters,
|
||||||
format: media_format,
|
format: media_format,
|
||||||
cache_duration: media_cache_duration,
|
|
||||||
};
|
};
|
||||||
let operation = Operation::Run;
|
let operation = Operation::Run;
|
||||||
|
|
||||||
|
@ -360,8 +358,6 @@ struct Media {
|
||||||
format: Option<ImageFormat>,
|
format: Option<ImageFormat>,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
skip_validate_imports: Option<bool>,
|
skip_validate_imports: Option<bool>,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
|
||||||
cache_duration: Option<i64>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Default, serde::Serialize)]
|
#[derive(Debug, Default, serde::Serialize)]
|
||||||
|
@ -503,10 +499,6 @@ struct Run {
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
media_format: Option<ImageFormat>,
|
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)]
|
#[command(subcommand)]
|
||||||
store: Option<RunStore>,
|
store: Option<RunStore>,
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,7 +72,6 @@ struct MediaDefaults {
|
||||||
video_codec: VideoCodec,
|
video_codec: VideoCodec,
|
||||||
filters: Vec<String>,
|
filters: Vec<String>,
|
||||||
skip_validate_imports: bool,
|
skip_validate_imports: bool,
|
||||||
cache_duration: i64,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, serde::Serialize)]
|
#[derive(Clone, Debug, serde::Serialize)]
|
||||||
|
@ -176,8 +175,6 @@ impl Default for MediaDefaults {
|
||||||
"thumbnail".into(),
|
"thumbnail".into(),
|
||||||
],
|
],
|
||||||
skip_validate_imports: false,
|
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) format: Option<ImageFormat>,
|
||||||
|
|
||||||
pub(crate) skip_validate_imports: bool,
|
pub(crate) skip_validate_imports: bool,
|
||||||
|
|
||||||
pub(crate) cache_duration: i64,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
|
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
|
||||||
|
|
Loading…
Reference in a new issue