mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-07-28 01:27:58 +00:00
fix(membench): explicitly ignore resp.Body.Close() error after io.ReadAll
This commit is contained in:
@@ -155,7 +155,7 @@ func (c *LLMClient) Complete(ctx context.Context, systemPrompt, userPrompt strin
|
|||||||
}
|
}
|
||||||
|
|
||||||
respBody, lastErr = io.ReadAll(resp.Body)
|
respBody, lastErr = io.ReadAll(resp.Body)
|
||||||
resp.Body.Close()
|
_ = resp.Body.Close()
|
||||||
if lastErr != nil {
|
if lastErr != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user