Skip to content

Commit

Permalink
Fix wrong EOF error on successful target scraping
Browse files Browse the repository at this point in the history
  • Loading branch information
fabxc committed Feb 15, 2016
1 parent cb86a43 commit cd28b88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion retrieval/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit cd28b88

Please sign in to comment.