mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 21:02:11 +08:00
refactor: cmd update.
This commit is contained in:
parent
4d198ea6e3
commit
b8a0c41e2e
@ -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()
|
||||||
|
|||||||
@ -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)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user