Update internal/auth/codebuddy/codebuddy_auth.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
lwiles692
2026-03-19 09:46:40 +08:00
committed by GitHub
parent 4022e69651
commit c28b65f849

View File

@@ -131,7 +131,7 @@ type pollResponse struct {
} `json:"data"`
}
// doPollRequest 执行单次轮询请求,安全读取并关闭响应体
// doPollRequest performs a single polling request, safely reading and closing the response body
func (a *CodeBuddyAuth) doPollRequest(ctx context.Context, pollURL string) ([]byte, int, error) {
req, err := http.NewRequestWithContext(ctx, http.MethodGet, pollURL, nil)
if err != nil {