refactor lua balancer and fix ipv6 issue
This commit is contained in:
parent
082325b6f5
commit
4b07e73e5d
7 changed files with 16 additions and 29 deletions
|
|
@ -128,7 +128,8 @@ function _M.balance(self)
|
|||
endpoint = pick_and_score(peer_copy, k)
|
||||
end
|
||||
|
||||
return endpoint.address, endpoint.port
|
||||
-- TODO(elvinefendi) move this processing to _M.sync
|
||||
return endpoint.address .. ":" .. endpoint.port
|
||||
end
|
||||
|
||||
function _M.after_balance(_)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue