Allow missing files for entries
Some checks failed
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is failing

This commit is contained in:
asonix 2023-11-13 17:32:26 -06:00
parent caf5ca1dfd
commit 5ed13b609c
5 changed files with 7 additions and 5 deletions

2
Cargo.lock generated
View file

@ -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",

View file

@ -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"

View file

@ -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;

View file

@ -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;
}
}
}

View file

@ -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();