changeset 76:470eacf452cb

hey we already jitter the passed watchLifetime- don't need to do it twice
author drewp@bigasterisk.com
date Fri, 06 Sep 2024 17:53:21 -0700
parents 5354739c9b0a
children 7041fae9549f
files calsync/sync_event.go
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/calsync/sync_event.go	Fri Sep 06 17:52:37 2024 -0700
+++ b/calsync/sync_event.go	Fri Sep 06 17:53:21 2024 -0700
@@ -73,8 +73,7 @@
 		log.Fatal(err)
 	}
 
-	jitter := time.Duration(rand.Intn(4)) * time.Minute
-	watchLifetime := time.Duration(3)*time.Minute + jitter
+	watchLifetime := time.Duration(3) * time.Minute
 
 	syncFunc := notificationrouter.SyncFunc(func() {
 		err := r.sync()