From cfcde0dcc4512d4396e48ddca806b0fd4685af94 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Thu, 22 Jun 2023 09:21:06 +0200 Subject: [PATCH] Retry activity send on connection failure (fixes #41) (#48) --- src/activity_queue.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/activity_queue.rs b/src/activity_queue.rs index f470ed9..c6c5864 100644 --- a/src/activity_queue.rs +++ b/src/activity_queue.rs @@ -217,13 +217,12 @@ async fn send( text, )) } - Err(e) => { - debug!( - "Unable to connect to {}, aborting task {}: {}", - task.inbox, task.activity_id, e - ); - Ok(()) - } + Err(e) => Err(anyhow!( + "Queueing activity {} to {} for retry after connection failure: {}", + task.activity_id, + task.inbox, + e + )), } }