mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-12 19:56:48 +00:00
feat: Support marking servers as unhealthy+stale during resolution
For when the server resolution process returns an error or Gone
This commit is contained in:
1 parent
79a2cbc7be
commit
4f63edac33
1 file changed
+5
-1
@@ -138,7 +138,11 @@ impl super::Service {
|
||||
.client
|
||||
.matrix_resolver
|
||||
.resolve_server(dest.as_str())
|
||||
.await?;
|
||||
.await
|
||||
.inspect_err(|_| {
|
||||
self.hit_unhealthy(dest.to_owned());
|
||||
self.mark_destination_stale(dest);
|
||||
})?;
|
||||
|
||||
let request = Request::try_from(request.try_into_http_request::<Vec<u8>>(
|
||||
actual.base_url().as_str(),
|
||||
|
||||
Reference in new issue
Block a user