Skip to content

Commit

Permalink
fix(healthcheck) correct duplicate handling in add_target
Browse files Browse the repository at this point in the history
  • Loading branch information
flrgh committed Jul 1, 2022
1 parent ced38d5 commit ed494c0
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 @@ -414,7 +414,7 @@ function checker:add_target(ip, port, hostname, is_healthy, hostheader)
if target.purge_time == nil then
self:log(DEBUG, "adding an existing target: ", hostname or "", " ", ip,
":", port, " (ignoring)")
return
return false
end
target.purge_time = nil
found = true
Expand Down

0 comments on commit ed494c0

Please sign in to comment.