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 2020/07/29 17:55:24 UTC
[GitHub] [incubator-apisix] shuaijinchao commented on a change in pull request #1928: bugfix: fix limit-count plugin redis.ttl error.
shuaijinchao commented on a change in pull request #1928:
URL: https://github.com/apache/incubator-apisix/pull/1928#discussion_r462309855
##########
File path: apisix/plugins/limit-count/limit-count-redis.lua
##########
@@ -71,7 +71,8 @@ function _M.incoming(self, key)
local remaining
key = self.plugin_name .. tostring(key)
- local ret = red:ttl(key)
+ -- todo: test case
+ local ret = red:ttl(key) or -2
Review comment:
OK, fixed.
----------------------------------------------------------------
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:
users@infra.apache.org