From 4b218742519be3bf2e7ad3ee8b5d2e0141d7405b Mon Sep 17 00:00:00 2001 From: sven Date: Tue, 26 May 2020 12:33:39 +0800 Subject: [PATCH] bug fix nodata (#157) * bug fix nodata --- src/modules/judge/judge/nodata.go | 2 +- src/modules/monapi/cron/event_reader.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/judge/judge/nodata.go b/src/modules/judge/judge/nodata.go index 0e27010b..bdf0a0fd 100644 --- a/src/modules/judge/judge/nodata.go +++ b/src/modules/judge/judge/nodata.go @@ -58,7 +58,7 @@ func nodataJudge() { nodataJob.Acquire() go AsyncJudge(nodataJob, stra, stra.Exprs, []*dataobj.HistoryData{}, judgeItem, now, []dataobj.History{}, "", "", "", []bool{}) } - return + continue } for _, data := range respData { diff --git a/src/modules/monapi/cron/event_reader.go b/src/modules/monapi/cron/event_reader.go index 9a19b441..870ee13a 100644 --- a/src/modules/monapi/cron/event_reader.go +++ b/src/modules/monapi/cron/event_reader.go @@ -143,7 +143,7 @@ func popEvent(queues []interface{}) (*model.Event, bool) { groups, err := json.Marshal(stra.NotifyGroup) if err != nil { - logger.Errorf("users marshal failed, err: %v, event: %+v", err, event) + logger.Errorf("groups marshal failed, err: %v, event: %+v", err, event) return nil, false }