| 40 | } |
| 41 | |
| 42 | type watcher struct { |
| 43 | sync.Mutex |
| 44 | value reader.Value |
| 45 | reader reader.Reader |
| 46 | version atomic.Value |
| 47 | exit chan bool |
| 48 | updates chan updateValue |
| 49 | path []string |
| 50 | } |
| 51 | |
| 52 | func (w *watcher) getVersion() string { |
| 53 | return w.version.Load().(string) |
nothing calls this directly
no outgoing calls
no test coverage detected