From 53b11936d7619701cdb406ad5c818cc9f36aa2f1 Mon Sep 17 00:00:00 2001 From: Chrono Date: Mon, 23 Oct 2023 17:11:47 +0800 Subject: [PATCH] refactor(clustering): use the correct param name `basic_info` for init_worker() (#11807) --- kong/clustering/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kong/clustering/init.lua b/kong/clustering/init.lua index f09a194e3e4f..a661a8c4eeaf 100644 --- a/kong/clustering/init.lua +++ b/kong/clustering/init.lua @@ -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