forked from jmug/stoatchat
fix: do not handle error early
This commit is contained in:
@@ -66,7 +66,7 @@ impl Request {
|
|||||||
let Request { response, mime } = Request::new(url).await?;
|
let Request { response, mime } = Request::new(url).await?;
|
||||||
|
|
||||||
if matches!(mime.type_(), mime::IMAGE | mime::VIDEO) {
|
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 {
|
let result = match bytes {
|
||||||
Ok(bytes) => {
|
Ok(bytes) => {
|
||||||
|
|||||||
@@ -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/server:$TAG - < crates/delta/Dockerfile
|
||||||
docker build -t ghcr.io/revoltchat/bonfire:$TAG - < crates/bonfire/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/autumn:$TAG - < crates/services/autumn/Dockerfile
|
||||||
|
docker build -t ghcr.io/revoltchat/january:$TAG - < crates/services/january/Dockerfile
|
||||||
|
|
||||||
if [ "$DEBUG" = "true" ]; then
|
if [ "$DEBUG" = "true" ]; then
|
||||||
git restore Cargo.toml
|
git restore Cargo.toml
|
||||||
@@ -32,3 +33,4 @@ fi
|
|||||||
docker push ghcr.io/revoltchat/server:$TAG
|
docker push ghcr.io/revoltchat/server:$TAG
|
||||||
docker push ghcr.io/revoltchat/bonfire:$TAG
|
docker push ghcr.io/revoltchat/bonfire:$TAG
|
||||||
docker push ghcr.io/revoltchat/autumn:$TAG
|
docker push ghcr.io/revoltchat/autumn:$TAG
|
||||||
|
docker push ghcr.io/revoltchat/january:$TAG
|
||||||
|
|||||||
Reference in New Issue
Block a user