spacewander commented on a change in pull request #6241:
URL: https://github.com/apache/apisix/pull/6241#discussion_r798220261
##########
File path: apisix/core/ctx.lua
##########
@@ -254,10 +253,6 @@ function _M.register_var(name, getter)
error("the getter of registered var should be a function")
end
- if apisix_var_names[name] then
- error(name .. " is registered")
- end
-
Review comment:
It doesn't work when we need to reload the plugin. The same var will be
registered twice in the different version of the same plugin.
--
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]