From 2cb12a3d59c0b4ee564edd515725693f97b5ec9c Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Wed, 2 Oct 2024 15:05:57 +0100 Subject: [PATCH] fix: do not handle error early --- crates/services/january/src/requests.rs | 2 +- scripts/publish-debug-image.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/services/january/src/requests.rs b/crates/services/january/src/requests.rs index b59cddf3..a17b494e 100644 --- a/crates/services/january/src/requests.rs +++ b/crates/services/january/src/requests.rs @@ -66,7 +66,7 @@ impl Request { let Request { response, mime } = Request::new(url).await?; if matches!(mime.type_(), mime::IMAGE | mime::VIDEO) { - let bytes = report_internal_error!(response.bytes().await)?; + let bytes = report_internal_error!(response.bytes().await); let result = match bytes { Ok(bytes) => { diff --git a/scripts/publish-debug-image.sh b/scripts/publish-debug-image.sh index a724a2e0..1f0eb2e4 100755 --- a/scripts/publish-debug-image.sh +++ b/scripts/publish-debug-image.sh @@ -24,6 +24,7 @@ docker build -t ghcr.io/revoltchat/base:latest -f Dockerfile.useCurrentArch . docker build -t ghcr.io/revoltchat/server:$TAG - < crates/delta/Dockerfile docker build -t ghcr.io/revoltchat/bonfire:$TAG - < crates/bonfire/Dockerfile docker build -t ghcr.io/revoltchat/autumn:$TAG - < crates/services/autumn/Dockerfile +docker build -t ghcr.io/revoltchat/january:$TAG - < crates/services/january/Dockerfile if [ "$DEBUG" = "true" ]; then git restore Cargo.toml @@ -32,3 +33,4 @@ fi docker push ghcr.io/revoltchat/server:$TAG docker push ghcr.io/revoltchat/bonfire:$TAG docker push ghcr.io/revoltchat/autumn:$TAG +docker push ghcr.io/revoltchat/january:$TAG