From 14c9a1f1f8328a2a6fb1251e0ea68dbd378c5799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E6=99=BA=E8=B6=850668000959?= Date: Fri, 26 Jun 2026 22:51:51 +0800 Subject: [PATCH] fix(membench): explicitly ignore resp.Body.Close() error after io.ReadAll --- cmd/membench/llm_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/membench/llm_client.go b/cmd/membench/llm_client.go index 6c62424da..a850ceafc 100644 --- a/cmd/membench/llm_client.go +++ b/cmd/membench/llm_client.go @@ -155,7 +155,7 @@ func (c *LLMClient) Complete(ctx context.Context, systemPrompt, userPrompt strin } respBody, lastErr = io.ReadAll(resp.Body) - resp.Body.Close() + _ = resp.Body.Close() if lastErr != nil { continue }