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:
theS1LV3R authored and Ellis Git committed 2026-11-12 14:26:17 +00:00
1 parent 79a2cbc7be
commit 4f63edac33
1 file changed
+5 -1
+5 -1
View File
@@ -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(),