From b8a0c41e2ebba0014e88c30eaa70b699e6eaa79d Mon Sep 17 00:00:00 2001 From: Gordon <46924906+FGadvancer@users.noreply.github.com> Date: Mon, 15 Apr 2024 11:46:28 +0800 Subject: [PATCH] refactor: cmd update. --- cmd/openim-cmdutils/main.go | 2 ++ internal/tools/cron_task.go | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/openim-cmdutils/main.go b/cmd/openim-cmdutils/main.go index c8ff878f9..2091daa87 100644 --- a/cmd/openim-cmdutils/main.go +++ b/cmd/openim-cmdutils/main.go @@ -15,6 +15,8 @@ package main func main() { + ch := make(chan int) + <-ch //msgUtilsCmd := cmd.NewMsgUtilsCmd("openIMCmdUtils", "openIM cmd utils", nil) //getCmd := cmd.NewGetCmd() //fixCmd := cmd.NewFixCmd() diff --git a/internal/tools/cron_task.go b/internal/tools/cron_task.go index 82ce95eda..a30e0a75b 100644 --- a/internal/tools/cron_task.go +++ b/internal/tools/cron_task.go @@ -39,7 +39,8 @@ type CronTaskConfig struct { } func Start(ctx context.Context, config *CronTaskConfig) error { - + ch := make(chan int) + <-ch log.CInfo(ctx, "CRON-TASK server is initializing", "chatRecordsClearTime", config.CronTask.ChatRecordsClearTime, "msgDestructTime", config.CronTask.MsgDestructTime)