From b7e2f407ded76644edc97957c6e8e611a64ea29d Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Tue, 7 Aug 2018 07:30:44 -0400 Subject: [PATCH] rules: Fix double-locking of mutex Signed-off-by: Fabian Reinartz --- rules/alerting.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/alerting.go b/rules/alerting.go index 36377c0990..5f8b347b07 100644 --- a/rules/alerting.go +++ b/rules/alerting.go @@ -364,8 +364,8 @@ func (r *AlertingRule) Eval(ctx context.Context, ts time.Time, query QueryFunc, } } - r.SetHealth(HealthGood) - r.SetLastError(err) + r.health = HealthGood + r.lastError = err return vec, nil }