Commit e01d34fe authored by Travis Nielsen's avatar Travis Nielsen Committed by GitHub
Browse files

Merge pull request #643 from travisn/rebuild-pool-watch

Reset the pool tpr watch index on failure
parents 96b886c0 7d08447c
Showing with 4 additions and 1 deletion
+4 -1
......@@ -202,7 +202,10 @@ func (p *poolManager) watchOuterTPR(eventCh chan *poolEvent, errCh chan error) e
decoder := json.NewDecoder(resp.Body)
for {
ev, st, err := pollPoolEvent(decoder)
done, err := handlePollEventResult(st, err, func() (bool, error) { return false, nil }, errCh)
done, err := handlePollEventResult(st, err, func() (bool, error) {
// there is no cache for the pool tpr, so we return true to indicate to always reset the watch on error
return true, nil
}, errCh)
if err != nil {
return err
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment