From 782c729b4c1f9a8422616c7dc049ef5ce16a776b Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 6 Jun 2024 02:46:24 +0200 Subject: [PATCH] fix: oops inbound which fails processing is not ok --- upub/worker/src/inbound.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/upub/worker/src/inbound.rs b/upub/worker/src/inbound.rs index 399ee50..c1a8533 100644 --- a/upub/worker/src/inbound.rs +++ b/upub/worker/src/inbound.rs @@ -12,9 +12,5 @@ pub async fn process(ctx: upub::Context, job: &upub::model::job::Model) -> crate return Ok(()); }; - if let Err(e) = ctx.process(activity).await { - tracing::error!("failed processing job #{}: {e}", job.internal); - } - - Ok(()) + Ok(ctx.process(activity).await?) }