Browse Source

Fix wrong EOF error on successful target scraping

pull/1395/head
Fabian Reinartz 9 years ago
parent
commit
cd28b88b08
  1. 3
      retrieval/target.go

3
retrieval/target.go

@ -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
} }

Loading…
Cancel
Save