Skip to content

Commit 6b30522

Browse files
authored
Merge pull request #12 from Revolyssup/revolyssup/release-1.2.0
fix: remove healthchecks for healthy nodes
2 parents d793d43 + f588537 commit 6b30522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/rediscluster.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ local function health_check_timer(premature)
7272
end
7373
-- Update health status based on check
7474
if ok then
75-
health_dict:set(key, 0, 0) -- Healthy: reset failures, no TTL
75+
health_dict:delete(key)
7676
ngx.log(ngx.WARN, "health check success for: ", ip, ":", port)
7777
else
7878
local failures = health_dict:get(key) or 0

0 commit comments

Comments
 (0)