Fix wrong EOF error on successful target scraping

This commit is contained in:
Fabian Reinartz 2016-02-15 17:23:04 +01:00
parent cb86a4300b
commit cd28b88b08

View File

@ -544,7 +544,8 @@ func (t *Target) scrape(appender storage.SampleAppender) error {
}
if err == io.EOF {
return nil
// Set err to nil since it is used in the scrape health recording.
err = nil
}
return err
}