From 699f397c36d05e42210f65456436a447885cc07a Mon Sep 17 00:00:00 2001 From: sunshineplan Date: Mon, 11 Mar 2024 15:27:48 +0800 Subject: [PATCH] Update streamReader Close() method to return error (#681) --- stream_reader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stream_reader.go b/stream_reader.go index d17412591..4210a1948 100644 --- a/stream_reader.go +++ b/stream_reader.go @@ -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() }