We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef5b0e5 commit 1330b16Copy full SHA for 1330b16
provider/mem/mem.go
@@ -262,9 +262,6 @@ func (a *Alerts) Put(alerts ...*types.Alert) error {
262
263
// count returns the number of non-resolved alerts we currently have stored filtered by the provided state.
264
func (a *Alerts) count(state types.AlertState) int {
265
- a.mtx.Lock()
266
- defer a.mtx.Unlock()
267
-
268
var count int
269
for _, alert := range a.alerts.List() {
270
if alert.Resolved() {
0 commit comments