nic-6443 commented on code in PR #11117:
URL: https://github.com/apache/apisix/pull/11117#discussion_r2685706801
##########
apisix/plugins/prometheus/exporter.lua:
##########
@@ -545,4 +552,13 @@ function _M.get_prometheus()
return prometheus
end
+
+function _M.destroy()
+ if prometheus ~= nil then
+ prometheus_bkp = core.table.deepcopy(prometheus)
Review Comment:
Why use `deepcopy`? Using the original object directly should be fine.
--
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]