(ctx *mgr.WorkerCtx)
| 270 | } |
| 271 | |
| 272 | func 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 | } |