Delay pulling feed
alex wennerberg alex@alexwennerberg.com
Sat, 30 Jan 2021 13:16:00 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
feed.go
→
feed.go
@@ -22,6 +22,7 @@
func feedsWorker() { log.Println("Starting feeds worker") for { + time.Sleep(time.Hour * 1) users, err := getActiveUserNames() if err != nil { // Handle error somehow@@ -31,7 +32,6 @@ }
for _, user := range users { writeAllFeeds(user) } - time.Sleep(time.Hour * 1) } }