agent: Adding TODO for future optimization

This commit is contained in:
Armon Dadgar 2014-11-24 11:09:04 -08:00
parent 31083ca1cd
commit 50e21b071c
1 changed files with 2 additions and 0 deletions

View File

@ -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)