diff --git a/main.go b/main.go index 17d658b..2f39439 100644 --- a/main.go +++ b/main.go @@ -250,7 +250,7 @@ func RunGeneralCron() { res := worker.GetRedis(key) var cron_infos []proto.CronInfo if res != "" { - err := json.Unmarshal([]byte(res), cron_infos) + err := json.Unmarshal([]byte(res), &cron_infos) if err != nil { fmt.Println("RunGeneralCron Error decoding config,key value is :", res) }