From 533c79bd2bd8536d8faaddb742172d396b7b67fc Mon Sep 17 00:00:00 2001 From: James Phillips Date: Fri, 18 Dec 2015 22:14:48 -0800 Subject: [PATCH] Cleans up some small `go vet` findings. --- consul/coordinate_endpoint.go | 2 +- consul/prepared_query_endpoint.go | 2 -- consul/rtt.go | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/consul/coordinate_endpoint.go b/consul/coordinate_endpoint.go index 5fc9c5f36..9e0df5821 100644 --- a/consul/coordinate_endpoint.go +++ b/consul/coordinate_endpoint.go @@ -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++ } diff --git a/consul/prepared_query_endpoint.go b/consul/prepared_query_endpoint.go index f33146095..6a370f35b 100644 --- a/consul/prepared_query_endpoint.go +++ b/consul/prepared_query_endpoint.go @@ -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. diff --git a/consul/rtt.go b/consul/rtt.go index 11aa32917..1d9533ab8 100644 --- a/consul/rtt.go +++ b/consul/rtt.go @@ -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) } }