mscb402 commented on code in PR #8578: URL: https://github.com/apache/apisix/pull/8578#discussion_r1058140047
########## docs/en/latest/plugins/limit-count.md: ########## @@ -254,7 +254,7 @@ curl -i http://127.0.0.1:9180/apisix/admin/routes/1 \ ## Example usage -The above configuration limits to 2 requests in 60 seconds. The first two requests will work and the response headers will contain the headers `X-RateLimit-Limit` and `X-RateLimit-Remaining`: +The above configuration limits to 2 requests in 60 seconds. The first two requests will work and the response headers will contain the headers `X-RateLimit-Limit` and `X-RateLimit-Remaining` and `X-RateLimit-Reset`: Review Comment: fixed ########## apisix/plugins/limit-count/init.lua: ########## @@ -242,6 +245,15 @@ local function gen_limit_obj(conf, ctx) return core.lrucache.plugin_ctx(lrucache, ctx, extra_key, create_limit_obj, conf) end +local function get_end_time(conf,key) + local create = function() Review Comment: 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
