MCPcopy
hub / github.com/safing/portmaster / PushUpdate

Method PushUpdate

base/database/controller.go:197–205  ·  view source on GitHub ↗

PushUpdate pushes a record update to subscribers. The caller must hold the record's lock when calling PushUpdate.

(r record.Record)

Source from the content-addressed store, hash-verified

195// The caller must hold the record's lock when calling
196// PushUpdate.
197func (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
207func (c *Controller) addSubscription(sub *Subscription) {
208 if shuttingDown.IsSet() {

Callers 11

SaveMethod · 0.80
deleteMethod · 0.80
SaveMethod · 0.80
DeleteMethod · 0.80
pushPinChangesWorkerMethod · 0.80
pushChangeMethod · 0.80
RemoveHubMethod · 0.80
saveMethod · 0.80
deleteMethod · 0.80
RegisterMethod · 0.80
pushUpdateFunction · 0.80

Calls 2

notifySubscribersMethod · 0.95
IsSetMethod · 0.45

Tested by

no test coverage detected