Skip to content

Commit

Permalink
Update streamReader Close() method to return error (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshineplan authored Mar 11, 2024
1 parent 38b16a3 commit 699f397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stream_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ func (stream *streamReader[T]) unmarshalError() (errResp *ErrorResponse) {
return
}

func (stream *streamReader[T]) Close() {
stream.response.Body.Close()
func (stream *streamReader[T]) Close() error {
return stream.response.Body.Close()
}

0 comments on commit 699f397

Please sign in to comment.