diff --git a/main.go b/main.go index 2c2a8983c209103e19b2fd8f62fc3611a6ddc059..e8487415dbccc5dcd977a36987dcbf0470d1d43b 100755 --- a/main.go +++ b/main.go @@ -3,6 +3,7 @@ package main import ( "fmt" "git.hilo.cn/hilo-common/resource/consul" + "git.hilo.cn/hilo-common/resource/redisCli" "hilo-user/cron" "hilo-user/domain/service/event_s" "hilo-user/route" @@ -15,6 +16,7 @@ const ( ) func main() { + redisCli.AddRedisHook() cron.Init() // 开启定时任务 event_s.EventInit() // 注册事件(内部事件+mysql拟kafka) r := route.InitRouter() // 注册路由