all repos — flounder @ 2f33cb9c4ccff15b41d158aca61267b2b339ba40

A small site builder for the Gemini protocol

Sleep when feedsWorker starts

Instead of pulling feeds on startup
alex wennerberg alex@alexwennerberg.com
Wed, 27 Jan 2021 20:42:01 -0800
commit

2f33cb9c4ccff15b41d158aca61267b2b339ba40

parent

031adfa17fdf386a44b9756dc845345672cfcadc

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M feed.gofeed.go

@@ -19,6 +19,7 @@

func feedsWorker() { log.Println("Starting feeds worker") for { + time.Sleep(time.Hour * 1) users, err := getActiveUserNames() if err != nil { // Handle error somehow

@@ -28,7 +29,6 @@ }

for _, user := range users { writeAllFeeds(user) } - time.Sleep(time.Hour * 1) } }