agent: Adding TODO for future optimization
This commit is contained in:
parent
9b5b2bd724
commit
521414f09a
|
@ -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