Skip to content

Commit

Permalink
style clean
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Nov 7, 2024
1 parent 370eef4 commit af1f6b8
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions kong/clustering/services/sync/rpc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,14 @@ end


local function do_sync()
local ns_deltas, err = kong.rpc:call("control_plane", "kong.sync.v2.get_delta",
{ default =
{ version =
tonumber(declarative.get_current_hash()) or 0,
node = kong.version, -- cp need this info
},
})
local msg = { default =
{ version =
tonumber(declarative.get_current_hash()) or 0,
node = kong.version, -- cp need this info
},
}

local ns_deltas, err = kong.rpc:call("control_plane", "kong.sync.v2.get_delta", msg)
if not ns_deltas then
ngx_log(ngx_ERR, "sync get_delta error: ", err)
return true
Expand Down

0 comments on commit af1f6b8

Please sign in to comment.