flounder

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

commit 3d35721726896a728cca246d4fea18e300524ba2
parent 25aaf338f943415e1cb5b5a35c26b983b5b2d815
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Mon, 18 Jan 2021 09:55:44 -0800

Remove dumplogs schedule

Was causing a crash for some reason. Looking into the issue

Diffstat:
Mmain.go | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/main.go b/main.go @@ -41,9 +41,9 @@ func main() { SessionStore = sessions.NewCookieStore(cookie) // handle background tasks - s1 := gocron.NewScheduler(time.UTC) + // s1 := gocron.NewScheduler(time.UTC) if c.AnalyticsDBFile != "" { - s1.Every(5).Minute().Do(dumpLogs) + // s1.Every(5).Minute().Do(dumpLogs) } // load domains in memory @@ -51,7 +51,7 @@ func main() { switch args[0] { case "serve": - s1.StartAsync() + // s1.StartAsync() wg := new(sync.WaitGroup) wg.Add(2) go func() {