This is an automated email from the ASF dual-hosted git repository.
tokers pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 986c6f2 chore: remove the obsolete TODO (#3628)
986c6f2 is described below
commit 986c6f2fefd0922083bdc9a9aecba9e7303b80cb
Author: 罗泽轩 <[email protected]>
AuthorDate: Mon Feb 22 18:57:43 2021 +0800
chore: remove the obsolete TODO (#3628)
Signed-off-by: spacewander <[email protected]>
---
apisix/balancer.lua | 2 --
1 file changed, 2 deletions(-)
diff --git a/apisix/balancer.lua b/apisix/balancer.lua
index 4eb5222..2540f2f 100644
--- a/apisix/balancer.lua
+++ b/apisix/balancer.lua
@@ -45,7 +45,6 @@ local function fetch_health_nodes(upstream, checker)
if not checker then
local new_nodes = core.table.new(0, #nodes)
for _, node in ipairs(nodes) do
- -- TODO filter with metadata
new_nodes[node.host .. ":" .. node.port] = node.weight
end
return new_nodes
@@ -57,7 +56,6 @@ local function fetch_health_nodes(upstream, checker)
for _, node in ipairs(nodes) do
local ok, err = checker:get_target_status(node.host, port or
node.port, host)
if ok then
- -- TODO filter with metadata
up_nodes[node.host .. ":" .. node.port] = node.weight
elseif err then
core.log.error("failed to get health check target status, addr: ",