Merge pull request #1395 from prometheus/fabxc/eof

Fix wrong EOF error on successful target scraping
This commit is contained in:
Fabian Reinartz 2016-02-15 17:26:34 +01:00
commit f1101590ee

View file

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