diff --git a/command/agent/local_test.go b/command/agent/local_test.go index b2499d703..812379f3e 100644 --- a/command/agent/local_test.go +++ b/command/agent/local_test.go @@ -818,7 +818,7 @@ func TestAgent_sendCoordinate(t *testing.T) { time.Sleep(3 * conf.SyncCoordinateInterval) // Make sure the coordinate is present. - req := structs.NodeSpecificRequest { + req := structs.NodeSpecificRequest{ Datacenter: agent.config.Datacenter, Node: agent.config.NodeName, } diff --git a/consul/structs/structs.go b/consul/structs/structs.go index 4af5772aa..d6c39109d 100644 --- a/consul/structs/structs.go +++ b/consul/structs/structs.go @@ -620,19 +620,12 @@ type ACLPolicy struct { QueryMeta } -// Coordinate stores a node name with its associated network coordinate. This is -// used when querying WAN coordinates. +// Coordinate stores a node name with its associated network coordinate. type Coordinate struct { Node string Coord *coordinate.Coordinate } -// CoordinateList is a list of Coordinate structs. This is used when querying WAN -// coordinates. -type CoordinateList struct { - Coords []Coordinate -} - // IndexedCoordinate is used to represent a single node's coordinate from the state // store. This is used when querying LAN coordinates. type IndexedCoordinate struct {