rules: Fix double-locking of mutex

Signed-off-by: Fabian Reinartz <freinartz@google.com>
This commit is contained in:
Fabian Reinartz 2018-08-07 07:30:44 -04:00
parent 817e379a0e
commit b7e2f407de

View file

@ -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
}