zaunist commented on a change in pull request #6202:
URL: https://github.com/apache/apisix/pull/6202#discussion_r804510929
##########
File path: apisix/plugins/server-info.lua
##########
@@ -132,15 +124,24 @@ local function get_server_info()
end
+local function set_lease_id(id)
+ -- update lease_id
+ local _, err = internal_status:set("lease_id", id)
+ if err ~= nil then
+ core.log.error("failed to set lease_id to shdict: ", err)
+ end
+end
+
+
local function report(premature, report_ttl)
if premature then
return
end
+ -- get apisix node info
local server_info, err = get()
if not server_info then
core.log.error("failed to get server_info: ", err)
- return
Review comment:
Sorry, careless.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]