mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 10:13:14 -05:00
Use weights from xDS
use the weights as reported. Set prio to 0 to signal it's not used. Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -205,9 +205,9 @@ func (c *Client) Select(cluster string, healty bool) (*SocketAddress, bool) {
|
||||
}
|
||||
|
||||
// All returns all endpoints.
|
||||
func (c *Client) All(cluster string, healty bool) ([]*SocketAddress, bool) {
|
||||
func (c *Client) All(cluster string, healty bool) ([]*SocketAddress, []uint32, bool) {
|
||||
if cluster == "" {
|
||||
return nil, false
|
||||
return nil, nil, false
|
||||
}
|
||||
return c.assignments.All(cluster, healty)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user