refactor: cmd update.

This commit is contained in:
Gordon 2024-04-15 11:46:28 +08:00
parent 4d198ea6e3
commit b8a0c41e2e
2 changed files with 4 additions and 1 deletions

View File

@ -15,6 +15,8 @@
package main package main
func main() { func main() {
ch := make(chan int)
<-ch
//msgUtilsCmd := cmd.NewMsgUtilsCmd("openIMCmdUtils", "openIM cmd utils", nil) //msgUtilsCmd := cmd.NewMsgUtilsCmd("openIMCmdUtils", "openIM cmd utils", nil)
//getCmd := cmd.NewGetCmd() //getCmd := cmd.NewGetCmd()
//fixCmd := cmd.NewFixCmd() //fixCmd := cmd.NewFixCmd()

View File

@ -39,7 +39,8 @@ type CronTaskConfig struct {
} }
func Start(ctx context.Context, config *CronTaskConfig) error { func Start(ctx context.Context, config *CronTaskConfig) error {
ch := make(chan int)
<-ch
log.CInfo(ctx, "CRON-TASK server is initializing", "chatRecordsClearTime", log.CInfo(ctx, "CRON-TASK server is initializing", "chatRecordsClearTime",
config.CronTask.ChatRecordsClearTime, "msgDestructTime", config.CronTask.MsgDestructTime) config.CronTask.ChatRecordsClearTime, "msgDestructTime", config.CronTask.MsgDestructTime)