watcher send changes only on non nil
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
7828935a5b
commit
0501ba2bac
@ -247,11 +247,12 @@ func (w *consulWatcher) run() {
|
|||||||
delete(dstmp, sk)
|
delete(dstmp, sk)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if len(dstmp) > 0 {
|
||||||
w.vchan <- dstmp
|
w.vchan <- dstmp
|
||||||
src = dst
|
src = dst
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *consulWatcher) Next() (map[string]interface{}, error) {
|
func (w *consulWatcher) Next() (map[string]interface{}, error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user