Skip to content

Commit 2ac0016

Browse files
committed
amstate: LastUnnoticedAlertsNotified() missed mutex
1 parent 8e113bb commit 2ac0016

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/amstate/store.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ func (s *Store) DeadMansSwitches() []DeadMansSwitch {
115115
}
116116

117117
func (s *Store) LastUnnoticedAlertsNotified() time.Time {
118+
s.mu.Lock()
119+
defer s.mu.Unlock()
120+
118121
return s.state.LastUnnoticedAlertsNotified
119122
}
120123

0 commit comments

Comments
 (0)