From 237e9f9fd7cdcd731feefaa24fdbe8d5688daf3c Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sat, 8 May 2021 15:59:04 +0300 Subject: [PATCH] app/vmalert: add missing comment for ErrStateRestore --- app/vmalert/alerting.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/vmalert/alerting.go b/app/vmalert/alerting.go index 5ecf4da08..82a53348b 100644 --- a/app/vmalert/alerting.go +++ b/app/vmalert/alerting.go @@ -405,6 +405,7 @@ func alertForToTimeSeries(name string, a *notifier.Alert, timestamp time.Time) p return newTimeSeries(float64(a.Start.Unix()), labels, timestamp) } +// ErrStateRestore indicates that the vmalert state failed to restore during startup. var ErrStateRestore = errors.New("failed to restore the state") // Restore restores the state of active alerts basing on previously written timeseries.