app/vmalert: fix comment for UpdateWith exported methods

This commit is contained in:
Aliaksandr Valialkin 2020-06-01 14:34:58 +03:00
parent 270552fde4
commit d2f30e8d79
2 changed files with 2 additions and 2 deletions

View file

@ -148,7 +148,7 @@ func (ar *AlertingRule) toTimeSeries(timestamp time.Time) []prompbmarshal.TimeSe
return tss return tss
} }
// copy all significant fields. // UpdateWith copies all significant fields.
// alerts state isn't copied since // alerts state isn't copied since
// it should be updated in next 2 Execs // it should be updated in next 2 Execs
func (ar *AlertingRule) UpdateWith(r Rule) error { func (ar *AlertingRule) UpdateWith(r Rule) error {

View file

@ -118,7 +118,7 @@ func (rr *RecordingRule) toTimeSeries(m datasource.Metric, timestamp time.Time)
return newTimeSeries(m.Value, labels, timestamp) return newTimeSeries(m.Value, labels, timestamp)
} }
// copy all significant fields. // UpdateWith copies all significant fields.
// alerts state isn't copied since // alerts state isn't copied since
// it should be updated in next 2 Execs // it should be updated in next 2 Execs
func (rr *RecordingRule) UpdateWith(r Rule) error { func (rr *RecordingRule) UpdateWith(r Rule) error {