fix: dont recheck healthy state after value is retrieved from client cache (#32099)

This commit is contained in:
Sagar Vora 2025-04-12 18:16:02 +05:30 committed by GitHub
parent fe5be4b3d1
commit f70c32c23e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -500,7 +500,7 @@ class ClientCache:
key = self.redis.make_key(key, shared=shared)
try:
val = self.cache[key]
if time.monotonic() < val.expiry and self.healthy:
if time.monotonic() < val.expiry:
self.hits += 1
return val.value
except KeyError: