spacewander commented on code in PR #8379:
URL: https://github.com/apache/apisix/pull/8379#discussion_r1030034730
##########
apisix/consumer.lua:
##########
@@ -94,6 +97,26 @@ function _M.consumers()
end
+local function create_consume_cache(consumers_conf, key_attr, consumer_names)
+ core.table.clear(consumer_names)
+
+ for _, consumer in ipairs(consumers_conf.nodes) do
+ core.log.info("consumer node: ", core.json.delay_encode(consumer))
+ consumer_names[consumer.auth_conf[key_attr]] = consumer
+ end
+
+ return consumer_names
+end
+
+
+function _M.consumers_kv(plugin_name, consumer_conf, key_attr, consumer_names)
Review Comment:
Why do we need to pass a consumer_names and fill it?
--
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]