From f8d81092c9a4cbfac80d516ddcc034719d806d9e Mon Sep 17 00:00:00 2001 From: Derek Chiang Date: Tue, 28 Apr 2015 23:01:25 -0400 Subject: [PATCH] Add state store tests --- consul/fsm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/fsm.go b/consul/fsm.go index 21191a3e40..5d11c3bb58 100644 --- a/consul/fsm.go +++ b/consul/fsm.go @@ -256,7 +256,7 @@ func (c *consulFSM) applyCoordinateOperation(buf []byte, index uint64) interface defer metrics.MeasureSince([]string{"consul", "fsm", "coordinate", string(req.Op)}, time.Now()) switch req.Op { case structs.CoordinateSet: - coord := &structs.Coordinate{req.Node, req.Coord} + coord := &structs.Coordinate{Node: req.Node, Coord: req.Coord} return c.state.CoordinateUpdate(index, coord) default: c.logger.Printf("[WARN] consul.fsm: Invalid Coordinate operation '%s'", req.Op)