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
|
||||
}
|
||||
|
||||
updates[i] = &structs.Coordinate{node, coord}
|
||||
updates[i] = &structs.Coordinate{Node: node, Coord: coord}
|
||||
i++
|
||||
}
|
||||
|
||||
|
|
|
@ -219,8 +219,6 @@ func (p *PreparedQuery) Get(args *structs.PreparedQuerySpecificRequest,
|
|||
reply.Queries = structs.PreparedQueries{query}
|
||||
return nil
|
||||
})
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// List returns all the prepared queries.
|
||||
|
|
|
@ -371,7 +371,7 @@ func getDatacenterMaps(s serfer, dcs []string) []structs.DatacenterMap {
|
|||
nodes := s.GetNodesForDatacenter(dc)
|
||||
for _, node := range nodes {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue