Skip to content

Commit

Permalink
fix: healthcheck to targets stopped after update upstream (#100)
Browse files Browse the repository at this point in the history
Co-authored-by: mrpk1906 <[email protected]>
  • Loading branch information
locao and mrpk1906 authored Mar 31, 2022
1 parent 34d6cad commit a0063cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resty/healthcheck.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ function _M.new(opts)
end

local cur_time = ngx_now()
for _, checker_obj in ipairs(hcs) do
for _, checker_obj in pairs(hcs) do
if checker_obj.checks.active.healthy.active and
(checker_obj.checks.active.healthy.last_run +
checker_obj.checks.active.healthy.interval <= cur_time)
Expand Down

0 comments on commit a0063cb

Please sign in to comment.