Skip to content

Commit

Permalink
refactor(clustering): use the correct param name basic_info for ini…
Browse files Browse the repository at this point in the history
…t_worker() (#11807)
  • Loading branch information
chronolaw authored Oct 23, 2023
1 parent a4e495f commit 53b1193
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kong/clustering/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,22 @@ function _M:handle_cp_websocket()
end


function _M:init_cp_worker(plugins_list)
function _M:init_cp_worker(basic_info)

events.init()

self.instance = require("kong.clustering.control_plane").new(self)
self.instance:init_worker(plugins_list)
self.instance:init_worker(basic_info)
end


function _M:init_dp_worker(plugins_list)
function _M:init_dp_worker(basic_info)
if not is_dp_worker_process() then
return
end

self.instance = require("kong.clustering.data_plane").new(self)
self.instance:init_worker(plugins_list)
self.instance:init_worker(basic_info)
end


Expand Down

1 comment on commit 53b1193

@khcp-gha-bot
Copy link

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:53b11936d7619701cdb406ad5c818cc9f36aa2f1
Artifacts available https://github.com/Kong/kong/actions/runs/6611159029

Please sign in to comment.