for initial values, exit on first error
()
| 92 | |
| 93 | // for initial values, exit on first error |
| 94 | func (w *Watcher) sendInitialValues() error { |
| 95 | w.fullConfig = ReadFullConfig() |
| 96 | message := WatcherUpdate{ |
| 97 | FullConfig: w.fullConfig, |
| 98 | } |
| 99 | w.broadcast(message) |
| 100 | return nil |
| 101 | } |
| 102 | |
| 103 | func (w *Watcher) Close() { |
| 104 | w.mutex.Lock() |
no test coverage detected