mirror of
https://github.com/LemmyNet/activitypub-federation-rust
synced 2024-11-10 06:04:19 +00:00
Retry activity send on connection failure (fixes #41)
This commit is contained in:
parent
8f997ec340
commit
c411402318
1 changed files with 6 additions and 7 deletions
|
@ -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
|
||||
)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue