mirror of
https://github.com/prometheus/prometheus.git
synced 2025-11-29 06:31:01 +01:00
rules: Fix double-locking of mutex
Signed-off-by: Fabian Reinartz <freinartz@google.com>
This commit is contained in:
parent
817e379a0e
commit
b7e2f407de
@ -364,8 +364,8 @@ func (r *AlertingRule) Eval(ctx context.Context, ts time.Time, query QueryFunc,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
r.SetHealth(HealthGood)
|
r.health = HealthGood
|
||||||
r.SetLastError(err)
|
r.lastError = err
|
||||||
return vec, nil
|
return vec, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user