diff calsync/event_sync.go @ 60:3b0595c2bf03

logging and small refactors
author drewp@bigasterisk.com
date Fri, 06 Sep 2024 16:41:48 -0700
parents 6c7151126a0b
children 8aee4f5c4bdd
line wrap: on
line diff
--- a/calsync/event_sync.go	Fri Sep 06 16:37:04 2024 -0700
+++ b/calsync/event_sync.go	Fri Sep 06 16:41:48 2024 -0700
@@ -19,6 +19,7 @@
 	gc *gcalclient.GCalClient,
 	keepHistory time.Duration,
 	syncAhead time.Duration) error {
+	log.Println("starting updateMongoEventsToMatchGoogleForever")
 
 	now := time.Now()
 	syncStart := now.Add(-keepHistory)
@@ -35,10 +36,9 @@
 		rd := newCalEventsReader(mc, gc, cal, syncStart, syncEnd)
 		go rd.updateForever()
 	}
-	return nil // return a mapping of webhook name to calEventsReader?
+	return nil
 }
 
-// i think this should own the webhook watcher
 type calEventsReader struct {
 	mc        *mongoclient.MongoClient
 	gc        *gcalclient.GCalClient