Skip to content

Commit

Permalink
agent: Adding TODO for future optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
armon committed Nov 24, 2014
1 parent 31083ca commit 50e21b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions command/agent/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 50e21b0

Please sign in to comment.