You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/02/03 05:23:00 UTC

[GitHub] [apisix] spacewander commented on a change in pull request #6241: refactor: mv the var mqtt_client_id to plugin level

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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org