mirror of https://github.com/status-im/consul.git
agent: Adding TODO for future optimization
This commit is contained in:
parent
31083ca1cd
commit
50e21b071c
|
@ -194,6 +194,8 @@ func (d *DNSServer) handlePtr(resp dns.ResponseWriter, req *dns.Msg) {
|
|||
}
|
||||
var out structs.IndexedNodes
|
||||
|
||||
// TODO: Replace ListNodes with an internal RPC that can do the filter
|
||||
// server side to avoid transfering the entire node list.
|
||||
if err := d.agent.RPC("Catalog.ListNodes", &args, &out); err == nil {
|
||||
for _, n := range out.Nodes {
|
||||
arpa, _ := dns.ReverseAddr(n.Address)
|
||||
|
|
Loading…
Reference in New Issue