mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 04:06:54 +00:00
fix: Don't insert a status at all if we're in backoff
This commit is contained in:
1 file changed
+4
-1
@@ -414,7 +414,10 @@ impl Service {
|
||||
let (mut allow, mut retry) = (true, false);
|
||||
if let Destination::Federation(server_name) = dest {
|
||||
if let Some(retry_after) = self.services.federation.retry_after(server_name) {
|
||||
allow = retry_after.is_zero();
|
||||
if !retry_after.is_zero() {
|
||||
trace!("{dest:?} is in backoff, refusing send");
|
||||
return Ok((false, false));
|
||||
}
|
||||
}
|
||||
statuses
|
||||
.entry(dest.clone())
|
||||
|
||||
Reference in new issue
Block a user