Browse Source

agent: Adding TODO for future optimization

pull/498/head
Armon Dadgar 10 years ago
parent
commit
50e21b071c
  1. 2
      command/agent/dns.go

2
command/agent/dns.go

@ -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…
Cancel
Save