Retry activity send on connection failure (fixes #41) (#48)

This commit is contained in:
Nutomic 2023-06-22 09:21:06 +02:00 committed by GitHub
parent 3d9d54cf09
commit cfcde0dcc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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