Skip to content

Commit

Permalink
check self.concentrator
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Nov 11, 2024
1 parent da7c49e commit 275dd93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kong/clustering/rpc/manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ function _M:_find_node_and_check_capability(node_id, cap)
return "local"
end

-- now we are on cp side
assert(self.concentrator)

-- does concentrator knows more about this client?
local res, err = kong.db.clustering_data_planes:select({ id = node_id })
if err then
Expand Down

0 comments on commit 275dd93

Please sign in to comment.