PushUpdate pushes a record update to subscribers. The caller must hold the record's lock when calling PushUpdate.
(r record.Record)
| 195 | // The caller must hold the record's lock when calling |
| 196 | // PushUpdate. |
| 197 | func (c *Controller) PushUpdate(r record.Record) { |
| 198 | if c != nil { |
| 199 | if shuttingDown.IsSet() { |
| 200 | return |
| 201 | } |
| 202 | |
| 203 | c.notifySubscribers(r) |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | func (c *Controller) addSubscription(sub *Subscription) { |
| 208 | if shuttingDown.IsSet() { |
no test coverage detected