From 1345ebefd45c0e14a47e30d16ef55c451e1fcd90 Mon Sep 17 00:00:00 2001 From: litianshun Date: Tue, 24 Mar 2020 22:46:44 +0800 Subject: [PATCH] clean --- src/modules/judge/judge/judge.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/judge/judge/judge.go b/src/modules/judge/judge/judge.go index 68739dcc..f9c96e93 100644 --- a/src/modules/judge/judge/judge.go +++ b/src/modules/judge/judge/judge.go @@ -105,7 +105,7 @@ func Judge(stra *model.Stra, exps []model.Exp, historyData []*dataobj.RRDData, f Hashid: getHashId(stra.Id, firstItem), } - sendEventIfNeed(historyData, isTriggered, now, event) + sendEventIfNeed(historyData, isTriggered, event) } }() @@ -387,7 +387,7 @@ func GetReqs(stra *model.Stra, metric string, endpoints []string, now int64) ([] return reqs, nil } -func sendEventIfNeed(historyData []*dataobj.RRDData, isTriggered bool, now int64, event *dataobj.Event) { +func sendEventIfNeed(historyData []*dataobj.RRDData, isTriggered bool, event *dataobj.Event) { lastEvent, exists := cache.LastEvents.Get(event.ID) if isTriggered { event.EventType = EVENT_ALERT