Skip to content

Commit

Permalink
resolve code review
Browse files Browse the repository at this point in the history
  • Loading branch information
tzssangglass committed Mar 17, 2022
1 parent 3123324 commit 8a2a67d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apisix/core/config_xds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ local router_config = ngx.shared["router-config"]
local ngx_re_match = ngx.re.match
local ngx_re_gmatch = ngx.re.gmatch

local xds_lib_name = "libxds.so"


local process
if is_http then
process = require("ngx.process")
Expand Down Expand Up @@ -106,10 +109,8 @@ end


function _M.init_worker()
local lib_name = "libxds.so"

if process.type() == "privileged agent" then
load_libxds(lib_name)
load_libxds(xds_lib_name)
end

return true
Expand Down

0 comments on commit 8a2a67d

Please sign in to comment.