mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 13:16:56 +00:00
fix: Set initial backoff time to 90 days immediately
As per the MSC: > This MSC recommends homeservers should wait a minimum of 24 hours > and should wait no longer than 90 days, balancing the need to respect > the server's intent to be offline whilst allowing for potential future > changes in server operation or domain ownership. And as per nex: > Technically the MSC said it should be up to 90 days, but they'll never > make me parse cache-control!
This commit is contained in:
1 parent
326348ec1a
commit
23a51bcf96
3 files changed
+26
-15
No files matched your search
@@ -149,10 +149,10 @@ impl Service {
|
||||
{
|
||||
debug!("{dest} is now unhealthy & stale due to a connect error: {e:?}");
|
||||
self.services.federation.mark_destination_stale(dest);
|
||||
self.services.federation.hit_unhealthy(dest.clone());
|
||||
self.services.federation.hit_unhealthy(dest.clone(), None);
|
||||
} else if e.status_code() != StatusCode::OK {
|
||||
debug!("{dest} is now unhealthy due to error response: {e:?}");
|
||||
self.services.federation.hit_unhealthy(dest.clone());
|
||||
self.services.federation.hit_unhealthy(dest.clone(), None);
|
||||
}
|
||||
}
|
||||
Self::handle_response_err(dest, statuses, &e);
|
||||
|
||||
Reference in new issue
Block a user