flounder

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

commit 8930d5d065a0a16cbd358acd761fc2367dc71f46
parent 5f0282a052f57ab57e2e96ca2b7d8a33bb5eb2f5
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sat, 30 Jan 2021 13:16:00 -0800

Delay pulling feed

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

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