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

Function cleanNotifyThreshold

service/compat/notify.go:272–283  ·  view source on GitHub ↗
(ctx *mgr.WorkerCtx)

Source from the content-addressed store, hash-verified

270}
271
272func cleanNotifyThreshold(ctx *mgr.WorkerCtx) error {
273 notifyThresholdsLock.Lock()
274 defer notifyThresholdsLock.Unlock()
275
276 for id, nt := range notifyThresholds {
277 if nt.expired() {
278 delete(notifyThresholds, id)
279 }
280 }
281
282 return nil
283}

Callers

nothing calls this directly

Calls 3

expiredMethod · 0.80
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected