Merge pull request #534 from RWDai/fix/issue-528-cache-affinity-health

fix(gateway): preserve cache affinity during health updates
This commit is contained in:
fawney19
2026-05-22 02:10:45 +08:00
committed by GitHub
4 changed files with 353 additions and 6 deletions
+5
View File
@@ -572,6 +572,11 @@ impl AppState {
self.invalidate_scheduler_affinity_cache();
}
pub(crate) fn invalidate_provider_health_routing_caches(&self) {
self.data.clear_minimal_candidate_selection_cache();
self.clear_provider_transport_snapshot_cache();
}
pub(crate) fn invalidate_auth_context_cache(&self) {
self.auth_context_cache.clear();
}