exit data update tracker only upon context completion (#10594)

The data update tracker saver would exit if data wasn't updated for between cycles.
master
Klaus Post 4 years ago committed by GitHub
parent 00eb6f6bc9
commit fdf0ae9167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      cmd/data-update-tracker.go

@ -236,8 +236,11 @@ func (d *dataUpdateTracker) startSaver(ctx context.Context, interval time.Durati
d.mu.Lock()
if !d.dirty {
d.mu.Unlock()
if exit {
return
}
continue
}
d.Saved = UTCNow()
err := d.serialize(&buf)
if d.debug {

Loading…
Cancel
Save