diff --git a/Cargo.lock b/Cargo.lock index 1b881c2..c59a9e6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/Cargo.toml b/Cargo.toml index 745d8ae..e7fcb66 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 "] license = "AGPL-3.0" readme = "README.md" diff --git a/pict-rs-aggregator.nix b/pict-rs-aggregator.nix index 0334085..397ef92 100644 --- a/pict-rs-aggregator.nix +++ b/pict-rs-aggregator.nix @@ -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; diff --git a/src/lib.rs b/src/lib.rs index 0f49298..9219a09 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; + } } } diff --git a/src/main.rs b/src/main.rs index 0370099..76f6997 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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();