Allow missing files for entries
This commit is contained in:
parent
caf5ca1dfd
commit
5ed13b609c
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1556,7 +1556,7 @@ checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94"
|
|||
|
||||
[[package]]
|
||||
name = "pict-rs-aggregator"
|
||||
version = "0.5.0-beta.2"
|
||||
version = "0.5.0-beta.3"
|
||||
dependencies = [
|
||||
"actix-rt",
|
||||
"actix-web",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "pict-rs-aggregator"
|
||||
description = "A simple image aggregation service for pict-rs"
|
||||
version = "0.5.0-beta.2"
|
||||
version = "0.5.0-beta.3"
|
||||
authors = ["asonix <asonix@asonix.dog>"]
|
||||
license = "AGPL-3.0"
|
||||
readme = "README.md"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "pict-rs-aggregator";
|
||||
version = "0.5.0-beta.2";
|
||||
version = "0.5.0-beta.3";
|
||||
src = ./.;
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
|
||||
|
|
|
@ -903,7 +903,9 @@ async fn ensure_dimensions(
|
|||
|
||||
for ((_, entry), update) in entries.iter_mut().zip(updates) {
|
||||
if let Some(handle) = update {
|
||||
*entry = handle.await.map_err(|_| ErrorKind::Canceled)??;
|
||||
if let Ok(Ok(updated_entry)) = handle.await {
|
||||
*entry = updated_entry;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ async fn main() -> color_eyre::Result<()> {
|
|||
let client = Client::builder()
|
||||
.wrap(Tracing)
|
||||
.timeout(Duration::from_secs(30))
|
||||
.add_default_header(("User-Agent", "pict_rs_aggregator-v0.5.0-beta.2"))
|
||||
.add_default_header(("User-Agent", "pict_rs_aggregator-v0.5.0-beta.3"))
|
||||
.disable_redirects()
|
||||
.finish();
|
||||
|
||||
|
|
Loading…
Reference in a new issue