Skip to content

Commit 71598f4

Browse files
committed
applied suggestions
1 parent c1d89c9 commit 71598f4

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

apisix/discovery/nacos/factory.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ local function _request(method, uri, params, headers, body, options)
5252
method = method,
5353
headers = headers,
5454
body = body,
55-
ssl_verify = false,
55+
ssl_verify = true,
5656
})
5757

5858
if not res then
@@ -145,10 +145,10 @@ local function fetch_instances(self, serv)
145145
local config = self.config
146146

147147
local params = {
148-
["namespaceId"] = serv.namespace_id or "",
149-
["groupName"] = serv.group_name or "DEFAULT_GROUP",
150-
["serviceName"] = serv.name,
151-
["healthyOnly"] = "true"
148+
namespaceId = serv.namespace_id or "",
149+
groupName = serv.group_name or "DEFAULT_GROUP",
150+
serviceName = serv.name,
151+
healthyOnly = "true"
152152
}
153153

154154
local auth = config.auth or {}

apisix/discovery/nacos/init.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ function _M.dump_data()
155155
end
156156

157157
return {
158-
config = local_conf.discovery.nacos,
159158
services = applications
160159
}
161160
end

0 commit comments

Comments
 (0)