Skip to content

Commit

Permalink
fix clearing node events
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Mar 14, 2018
1 parent e83debc commit 4252ffe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,9 @@ func (c *Client) watchNodeEvents() {
if err := c.submitNodeEvents(batchEvents); err != nil {
c.logger.Printf("[ERR] client: submitting node events failed: %v", err)
timer.Reset(c.retryIntv(nodeUpdateRetryIntv))
} else {
// Reset the events since we succesfully sent them.
batchEvents = nil
}
case <-c.shutdownCh:
return
Expand Down

0 comments on commit 4252ffe

Please sign in to comment.