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") +// }