Retry activity send on connection failure (fixes #41)

This commit is contained in:
Felix Ableitner 2023-06-21 22:04:48 +02:00
parent 8f997ec340
commit c411402318

View file

@ -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
)),
}
}