定时任务部分bug
This commit is contained in:
parent
61b58ec546
commit
a88002e3d0
2
main.go
2
main.go
|
|
@ -250,7 +250,7 @@ func RunGeneralCron() {
|
||||||
res := worker.GetRedis(key)
|
res := worker.GetRedis(key)
|
||||||
var cron_infos []proto.CronInfo
|
var cron_infos []proto.CronInfo
|
||||||
if res != "" {
|
if res != "" {
|
||||||
err := json.Unmarshal([]byte(res), cron_infos)
|
err := json.Unmarshal([]byte(res), &cron_infos)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("RunGeneralCron Error decoding config,key value is :", res)
|
fmt.Println("RunGeneralCron Error decoding config,key value is :", res)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue