mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 13:16:56 +00:00
feat: Clear destinations cache when a remote is potentially stale
This commit is contained in:
1 parent
53db584741
commit
ef5bf7c977
3 files changed
+55
-9
No files matched your search
@@ -187,7 +187,8 @@ impl super::Service {
|
||||
.await,
|
||||
| Err(error) => {
|
||||
if error.is_connect() {
|
||||
debug_info!("{dest} is unhealthy due to a connect error");
|
||||
debug_info!("{dest} is unhealthy & stale due to a connect error");
|
||||
self.mark_destination_stale(dest);
|
||||
self.hit_unhealthy(dest.to_owned());
|
||||
}
|
||||
Err(handle_error(actual, &method, &url, error).expect_err("always returns error"))
|
||||
|
||||
Reference in new issue
Block a user