Skip to content

Commit

Permalink
fix up go check warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
chelseakomlo committed Mar 9, 2018
1 parent f93ea2a commit 9cad283
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ func (c *Client) run() {
}

// submitNodeEvents is used to submit a client-side node event. Examples of
// these kinds of events include when a driver moves from healthy to unhealhty
// these kinds of events include when a driver moves from healthy to unhealthy
// (and vice versa)
func (c *Client) submitNodeEvents(e []*structs.NodeEvent) error {
node := c.Node()
Expand Down
2 changes: 1 addition & 1 deletion nomad/node_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func TestClientEndpoint_EmitEvent(t *testing.T) {
Timestamp: time.Now().Unix(),
}

nodeEvents := map[string][]*structs.NodeEvent{node.ID: []*structs.NodeEvent{nodeEvent}}
nodeEvents := map[string][]*structs.NodeEvent{node.ID: {nodeEvent}}
req := structs.EmitNodeEventRequest{
NodeEvents: nodeEvents,
WriteRequest: structs.WriteRequest{Region: "global"},
Expand Down

0 comments on commit 9cad283

Please sign in to comment.