Skip to content

Commit

Permalink
fix(clustering/rpc): fix mistake of stop timer
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw authored and ADD-SP committed Jan 7, 2025
1 parent eb3293c commit df6cc59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/clustering/services/sync/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function _M:init_worker()
-- cp does not support kong.sync.v2
if not has_sync_v2 then
ngx.log(ngx.WARN, "rpc sync is disabled in CP.")
assert(self.rpc:sync_every(EACH_SYNC_DELAY), true) -- stop timer
assert(self.rpc:sync_every(EACH_SYNC_DELAY, true)) -- stop timer
return
end

Expand All @@ -89,7 +89,7 @@ function _M:init_worker()

-- if rpc is down we will also stop to sync
worker_events.register(function()
assert(self.rpc:sync_every(EACH_SYNC_DELAY), true) -- stop timer
assert(self.rpc:sync_every(EACH_SYNC_DELAY, true)) -- stop timer
end, "clustering:jsonrpc", "disconnected")
end

Expand Down

1 comment on commit df6cc59

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:df6cc598b65d4d205ae148812d0a673d2fc098b9
Artifacts available https://github.com/Kong/kong/actions/runs/12644060723

Please sign in to comment.