app/vmalert: fix typo in replay error handling

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
hagen1778 2024-06-20 15:15:34 +02:00
parent 4ef76eed7b
commit 279815818c
No known key found for this signature in database
GPG key ID: 3BF75F3741CA9640

View file

@ -69,8 +69,8 @@ func replay(groupsCfg []config.Group, qb datasource.QuerierBuilder, rw remotewri
total += ng.Replay(tFrom, tTo, rw, *replayMaxDatapoints, *replayRuleRetryAttempts, *replayRulesDelay, *disableProgressBar)
}
logger.Infof("replay evaluation finished, generated %d samples", total)
if rw != nil {
return rw.Close()
if err := rw.Close(); err != nil {
return err
}
droppedRows := remotewrite.GetDroppedRows()
if droppedRows > 0 {