Merge pull request #1532 from hashicorp/f-clean-vet
Cleans up some small `go vet` findings.
This commit is contained in:
commit
2f74f8d508
|
@ -76,7 +76,7 @@ func (c *Coordinate) batchApplyUpdates() error {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
updates[i] = &structs.Coordinate{node, coord}
|
updates[i] = &structs.Coordinate{Node: node, Coord: coord}
|
||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -219,8 +219,6 @@ func (p *PreparedQuery) Get(args *structs.PreparedQuerySpecificRequest,
|
||||||
reply.Queries = structs.PreparedQueries{query}
|
reply.Queries = structs.PreparedQueries{query}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// List returns all the prepared queries.
|
// List returns all the prepared queries.
|
||||||
|
|
|
@ -371,7 +371,7 @@ func getDatacenterMaps(s serfer, dcs []string) []structs.DatacenterMap {
|
||||||
nodes := s.GetNodesForDatacenter(dc)
|
nodes := s.GetNodesForDatacenter(dc)
|
||||||
for _, node := range nodes {
|
for _, node := range nodes {
|
||||||
if coord, ok := s.GetCachedCoordinate(node); ok {
|
if coord, ok := s.GetCachedCoordinate(node); ok {
|
||||||
entry := &structs.Coordinate{node, coord}
|
entry := &structs.Coordinate{Node: node, Coord: coord}
|
||||||
m.Coordinates = append(m.Coordinates, entry)
|
m.Coordinates = append(m.Coordinates, entry)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue