Reload requests an immediate reload from the configuration source.
()
| 108 | |
| 109 | // Reload requests an immediate reload from the configuration source. |
| 110 | func (n *Notifier) Reload() error { |
| 111 | select { |
| 112 | case n.reload <- true: |
| 113 | default: |
| 114 | return errors.New("reload request already queued") |
| 115 | } |
| 116 | return nil |
| 117 | } |
| 118 | |
| 119 | // Shutdown shuts down a Notifier. |
| 120 | func (n *Notifier) Shutdown() { |
no outgoing calls
no test coverage detected