Skip to content

Commit

Permalink
fix(balancer) do not reschedule resolve timer when reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
locao committed Apr 19, 2022
1 parent f6aae6f commit 9a65902
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kong/runloop/balancer/targets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,11 @@ end


-- Timer invoked to update DNS records
function resolve_timer_callback()
function resolve_timer_callback(premature)
if premature then
return
end

local now = ngx_now()

while (renewal_heap:peekValue() or math.huge) < now do
Expand Down

0 comments on commit 9a65902

Please sign in to comment.