check for etcd watcher canceled value
This commit is contained in:
parent
d9b3b17582
commit
203486fd31
@ -48,6 +48,9 @@ func (ew *etcdWatcher) Next() (*registry.Result, error) {
|
||||
if wresp.Err() != nil {
|
||||
return nil, wresp.Err()
|
||||
}
|
||||
if wresp.Canceled {
|
||||
return nil, errors.New("could not get next")
|
||||
}
|
||||
for _, ev := range wresp.Events {
|
||||
service := decode(ev.Kv.Value)
|
||||
var action string
|
||||
|
Loading…
Reference in New Issue
Block a user