nic-6443 commented on code in PR #13269:
URL: https://github.com/apache/apisix/pull/13269#discussion_r3116275404
##########
apisix/plugins/ai-protocols/init.lua:
##########
@@ -66,6 +67,17 @@ end
+--- Get the list of all registered protocol names.
+-- @return table Array of protocol names
+function _M.names()
+ local names = {}
+ for name in pairs(registered) do
+ names[#names + 1] = name
+ end
Review Comment:
Good catch — fixed in 015f812. `table.sort(names)` now ensures deterministic
ordering.
--
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]