flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit 2f33cb9c4ccff15b41d158aca61267b2b339ba40
parent 031adfa17fdf386a44b9756dc845345672cfcadc
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Wed, 27 Jan 2021 20:42:01 -0800

Sleep when feedsWorker starts

Instead of pulling feeds on startup

Diffstat:
Mfeed.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/feed.go b/feed.go @@ -19,6 +19,7 @@ const followingFile = "following.gmi" 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 @@ func feedsWorker() { for _, user := range users { writeAllFeeds(user) } - time.Sleep(time.Hour * 1) } }