From 6f3890f46aabeb3a8951324297f4983739102299 Mon Sep 17 00:00:00 2001 From: chronolaw Date: Mon, 25 Nov 2024 16:57:51 +0800 Subject: [PATCH] asserts --- kong/clustering/rpc/manager.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kong/clustering/rpc/manager.lua b/kong/clustering/rpc/manager.lua index 1b16c64c7610..2d2d22901adf 100644 --- a/kong/clustering/rpc/manager.lua +++ b/kong/clustering/rpc/manager.lua @@ -203,6 +203,10 @@ function _M:_handle_meta_call(c) list = capabilities_list, } + -- we are on cp side + assert(self.concentrator) + assert(self.client_info) + -- store DP's ip addr self.client_info[node_id] = { ip = ngx_var.remote_addr,