Skip to content

Commit

Permalink
init.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Nov 3, 2024
1 parent 7b0f691 commit b255bdf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions kong/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -994,12 +994,15 @@ function Kong.init_worker()
end

-- rpc and incremental sync
if kong.rpc and is_http_module then
if is_http_module then

-- rpc init connection
kong.rpc:init_worker()
-- init rpc connection
if kong.rpc then
kong.rpc:init_worker()
end

-- init incremental sync
-- should run after rpc init successfully
if kong.sync then
kong.sync:init_worker()
end
Expand Down

0 comments on commit b255bdf

Please sign in to comment.