Update streamReader Close() method to return error (#681)

This commit is contained in:
sunshineplan
2024-03-11 15:27:48 +08:00
committed by GitHub
parent 38b16a3c41
commit 699f397c36

View File

@@ -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()
} }