From d6d82ccd9af7d07fc0620405cc34413aa4fb4b2e Mon Sep 17 00:00:00 2001 From: smtmfft <99081233+smtmfft@users.noreply.github.com> Date: Wed, 20 Mar 2024 18:49:34 +0800 Subject: [PATCH] chore(client): use writer.Close() instead of writer.Flush() (#651) Signed-off-by: smtmfft --- internal/utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/utils/utils.go b/internal/utils/utils.go index 2ee105c09..0c49fbe77 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -85,7 +85,7 @@ func Compress(txList []byte) ([]byte, error) { return nil, err } - if err := w.Flush(); err != nil { + if err := w.Close(); err != nil { return nil, err }