From b56439b0680c73674b870dd04a5ceeef2151da0d Mon Sep 17 00:00:00 2001 From: chronolaw Date: Mon, 18 Nov 2024 19:15:10 +0800 Subject: [PATCH] no handshake --- kong/clustering/rpc/manager.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kong/clustering/rpc/manager.lua b/kong/clustering/rpc/manager.lua index c1e87db2c156..707ad00672b0 100644 --- a/kong/clustering/rpc/manager.lua +++ b/kong/clustering/rpc/manager.lua @@ -150,7 +150,7 @@ end -- CP => DP function _M:_register_meta_call() - self.callbacks:register(RPC_MATA_V1 .. ".handshake", function(node_id, info) + self.callbacks:register(RPC_MATA_V1, function(node_id, info) local capabilities_list = info.capabilities self.client_capabilities[node_id] = { @@ -164,9 +164,7 @@ end -- DP => CP -function _M:_meta_call(node_id, s, meta) - local method = meta .. ".handshake" - +function _M:_meta_call(node_id, s, method) local info = { capabilities = self.callbacks:get_capabilities_list(), -- conf and others