all repos — flounder @ 3d35721726896a728cca246d4fea18e300524ba2

A small site builder for the Gemini protocol

Remove dumplogs schedule

Was causing a crash for some reason. Looking into the issue
alex wennerberg alex@alexwennerberg.com
Mon, 18 Jan 2021 09:55:44 -0800
commit

3d35721726896a728cca246d4fea18e300524ba2

parent

25aaf338f943415e1cb5b5a35c26b983b5b2d815

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

jump to
M main.gomain.go

@@ -41,9 +41,9 @@ cookie := generateCookieKeyIfDNE()

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 @@ refreshDomainMap()

switch args[0] { case "serve": - s1.StartAsync() + // s1.StartAsync() wg := new(sync.WaitGroup) wg.Add(2) go func() {