Update streamReader Close() method to return error (#681)
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user