From a028976f6aa26902e752b4035ebb627f754c6fc5 Mon Sep 17 00:00:00 2001 From: Leon Date: Thu, 22 Feb 2024 14:18:23 +0800 Subject: [PATCH] Commented out cron task for debugging purposes --- cmd/main.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index d1e7211..3f3769b 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -92,12 +92,12 @@ func initService() { // Load all services in the singleton package singleton.LoadSingleton() - if _, err := singleton.Cron.AddFunc("0 * * * * *", sayHello); err != nil { - panic(err) - } + // if _, err := singleton.Cron.AddFunc("0 * * * * *", sayHello); err != nil { + // panic(err) + // } } -func sayHello() { - singleton.Log.Info().Msg("Hello world, I am a cron task") - // singleton.SendNotificationByType("wecom", "Hello world", "I am a cron task") -} +// func sayHello() { +// singleton.Log.Info().Msg("Hello world, I am a cron task") +// // singleton.SendNotificationByType("wecom", "Hello world", "I am a cron task") +// }