Skip to content

Commit

Permalink
asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Nov 25, 2024
1 parent 4912f02 commit a0ca6be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kong/clustering/rpc/manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ function _M:_handle_meta_call(c, node_id)
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,
Expand Down

0 comments on commit a0ca6be

Please sign in to comment.