Skip to content

Commit

Permalink
Delete expired notices during prune
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoyt committed Aug 25, 2023
1 parent 737eb0c commit 07be373
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions internals/overlord/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,10 @@ func (s *State) Prune(pruneWait, abortWait time.Duration, maxReadyChanges int) {
}
}

// TODO: delete expired notices
for k, w := range s.notices {
_, _ = k, w
//if w.ExpiredBefore(now) {
// delete(s.warnings, k)
//}
if w.expired(now) {
delete(s.notices, k)
}
}

for _, chg := range changes {
Expand Down

0 comments on commit 07be373

Please sign in to comment.