lib/promscrape: typo fix after 74c00a8762

This commit is contained in:
Aliaksandr Valialkin 2022-09-14 15:06:31 +03:00
parent 877940a131
commit 56ce7ce85b
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -560,7 +560,7 @@ func (sw *scrapeWork) scrapeStream(scrapeTimestamp, realTimestamp int64) error {
} else {
var mu sync.Mutex
err = sbr.Init(sr)
if err != nil {
if err == nil {
err = parser.ParseStream(&sbr, scrapeTimestamp, false, func(rows []parser.Row) error {
mu.Lock()
defer mu.Unlock()