提交 5ef428e4 authored 作者: mooncake9527's avatar mooncake9527

update

上级 67a69fea
...@@ -70,7 +70,6 @@ func initCron() error { ...@@ -70,7 +70,6 @@ func initCron() error {
if err = gocron.Add(tasks...); err != nil { if err = gocron.Add(tasks...); err != nil {
return err return err
} }
eventbus.Eb.Publish(ctx, eventbus.TopicCronInitFinish)
logger.Info("[cron] initialized", ctxUtils.CtxTraceIDField(ctx)) logger.Info("[cron] initialized", ctxUtils.CtxTraceIDField(ctx))
return nil return nil
} }
...@@ -12,7 +12,7 @@ import ( ...@@ -12,7 +12,7 @@ import (
) )
func init() { func init() {
eventbus.Eb.Subscribe(eventbus.TopicGinEngineCreated, func(ctx context.Context) { eventbus.Eb.Subscribe(eventbus.TopicCoreInitFinish, func(ctx context.Context) {
initXCron() initXCron()
initLocalCron() initLocalCron()
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论