// watchForUpdates invokes bcaster.Notify() with the latest version of an object // when changes occur. func watchForUpdates(bcaster *config.Broadcaster, accessor config.Accessor, updates <-chan struct{}) { for true { <-updates bcaster.Notify(accessor.MergedState()) } }
// watchForUpdates invokes watcher.Notify() with the latest version of an object // when changes occur. func watchForUpdates(watcher *config.Watcher, accessor config.Accessor, updates <-chan struct{}) { for _ = range updates { watcher.Notify(accessor.MergedState()) } }