diff options
Diffstat (limited to 'util.go')
-rw-r--r-- | util.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -64,15 +64,15 @@ func parseValue(value []byte) ([]string, error) { func parseConsulResult(data []*consul.KVPair) (map[string]Entry, error) { aggregator := map[string]Entry{} - for _, kv := range data { - dn, attr, err := consulToDN(kv.Key) + for _, pair := range data { + dn, attr, err := consulToDN(pair.Key) if err != nil { continue } if _, exists := aggregator[dn]; !exists { aggregator[dn] = Entry{} } - value, err := parseValue(kv.Value) + value, err := parseValue(pair.Value) if err != nil { return nil, err } |