Skip to content

Commit

Permalink
Update kong/clustering/services/sync/rpc.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
StarlightIbuki authored Jan 21, 2025
1 parent 51e634d commit 4cfafca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kong/clustering/services/sync/rpc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,10 @@ local function sync_once_impl(premature, retry_count)
local ok, err = kong.timer:at(0.1, sync_once_impl, retry_count or 0)
-- this is a workaround for a timerng bug, where tail recursion causes failure
-- ok could be a string so let's convert it to boolean
return ok and true or false, err
if not ok then
return nil, err
end
return true
end


Expand Down

0 comments on commit 4cfafca

Please sign in to comment.