You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "shreemaan-abhishek (via GitHub)" <gi...@apache.org> on 2023/04/13 03:42:31 UTC

[GitHub] [apisix] shreemaan-abhishek commented on a diff in pull request #9291: chore: make limit-count/init.lua hookable

shreemaan-abhishek commented on code in PR #9291:
URL: https://github.com/apache/apisix/pull/9291#discussion_r1164953338


##########
apisix/plugins/limit-count/limit-count-redis-cluster.lua:
##########
@@ -112,5 +113,5 @@ function _M.incoming(self, key)
     return 0, remaining, ttl
 end
 
-
+_M.script = script

Review Comment:
   The redis script in `limit-count-redis.lua` and `limit-count-redis-cluster.lua` are the same so I exported it to avoid duplication.



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