ChuanFF commented on code in PR #12991:
URL: https://github.com/apache/apisix/pull/12991#discussion_r2866866821
##########
apisix/utils/upstream.lua:
##########
@@ -26,7 +26,10 @@ local ngx = ngx
local _M = {}
-local function sort_by_key_host(a, b)
+local function sort_by_key_host_port(a, b)
+ if a.host == b.host then
+ return a.port < b.port
+ end
return a.host < b.host
end
Review Comment:
This is a separate issue and unrelated to this pull request. The reason I
added port comparisons for the sorting is that the current sorting is causing
the test cases to fail.
--
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]