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
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
main.go
→
main.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() {