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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (stream *streamReader[T]) Close() {
|
func (stream *streamReader[T]) Close() error {
|
||||||
stream.response.Body.Close()
|
return stream.response.Body.Close()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user