Add notify threshold for app related notification

This commit is contained in:
Daniel
2022-03-30 16:27:49 +02:00
parent bff3dc8a27
commit 7d1f7a0d0f
2 changed files with 64 additions and 4 deletions

View File

@@ -52,6 +52,9 @@ func start() error {
MaxDelay(selfcheckTaskRetryAfter).
Schedule(time.Now().Add(selfcheckTaskRetryAfter))
module.NewTask("clean notify thresholds", cleanNotifyThreshold).
Repeat(10 * time.Minute)
return module.RegisterEventHook(
netenv.ModuleName,
netenv.NetworkChangedEvent,