Skip to content

Commit

Permalink
Update storage/remote/codec.go
Browse files Browse the repository at this point in the history
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
Signed-off-by: Justin Lei <justin.lei@grafana.com>
  • Loading branch information
leizor and bwplotka committed Mar 28, 2024
1 parent 21891f6 commit 870b1d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions storage/remote/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,7 @@ func NewChunkedSeriesSet(chunkedReader *ChunkedReader, respBody io.ReadCloser, m
func (s *chunkedSeriesSet) Next() bool {
res := &prompb.ChunkedReadResponse{}

err := s.chunkedReader.NextProto(res)
if err != nil {
if err := s.chunkedReader.NextProto(res); err != nil {
if !errors.Is(err, io.EOF) {
s.err = err
_, _ = io.Copy(io.Discard, s.respBody)
Expand Down

0 comments on commit 870b1d8

Please sign in to comment.