spacewander commented on a change in pull request #2789:
URL: https://github.com/apache/apisix/pull/2789#discussion_r526519127



##########
File path: apisix/core/log.lua
##########
@@ -82,7 +82,7 @@ setmetatable(_M, {__index = function(self, cmd)
 
     -- cache the lazily generated method in our
     -- module table
-    _M[cmd] = method
+    self[cmd] = method

Review comment:
       Ditto

##########
File path: apisix/core/log.lua
##########
@@ -59,7 +59,7 @@ function _M.new(prefix)
 
         -- cache the lazily generated method in our
         -- module table
-        m[cmd] = method
+        self[cmd] = method

Review comment:
       The `m` and `self` are the same in this situation.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to