Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Oct 5, 2024
1 parent 9c5324f commit 7626093
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 4 additions & 4 deletions ci/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ $cross = $args[0]
$target_triple = $args[1]
$release_build = $args[2]

# Only the CLI and backend are supported for now on Windows
# Only the CLI and is supported for now on Windows
if ( $release_build -ne "RELEASE" ) {
Invoke-Expression "$cross build -p cli -p backend --target $target_triple"
Invoke-Expression "$cross build -p cli -p backend --target $target_triple --all-features"
Invoke-Expression "$cross build -p cli --target $target_triple"
Invoke-Expression "$cross build -p cli --target $target_triple --all-features"
} else {
Invoke-Expression "$cross build -p cli -p backend --target $target_triple --all-features --release"
Invoke-Expression "$cross build -p cli --target $target_triple --all-features --release"
}
7 changes: 2 additions & 5 deletions worker/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub async fn run_worker(
let pg_pool_clone = pg_pool.clone();

tokio::spawn(async move {
match process_queue_message(
if let Err(e) = process_queue_message(
&payload,
delivery,
channel_clone,
Expand All @@ -91,10 +91,7 @@ pub async fn run_worker(
)
.await
{
Ok(_) => {}
Err(e) => {
error!(target: LOG_TARGET, email=payload.input.to_email, error=?e, "Error processing message");
}
error!(target: LOG_TARGET, email=payload.input.to_email, error=?e, "Error processing message");
}
});

Expand Down

0 comments on commit 7626093

Please sign in to comment.