Skip to content

Commit

Permalink
client closing was warning in normal operation (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
willscott committed Jul 13, 2020
1 parent 9b7b21d commit 726a9c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/optimizing.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,9 @@ func (ws *watchState) done(c Client) {
if idx > -1 {
ws.close(idx)
ws.failed = append(ws.failed, failedClient{c, time.Now().Add(ws.retryInterval)})
} else {
ws.optimizer.log.Warn("optimizing_client", "failed to close watching client", "client", fmt.Sprintf("%s", c))
}
// note: it's expected that the client may already not be active.
// this happens when the optimizing client has closed it via `closeSlowest`
}

func (ws *watchState) hasActive(c Client) int {
Expand Down

0 comments on commit 726a9c6

Please sign in to comment.