From d87d953555622c267ca7697802b172306d469b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 15 Dec 2025 14:13:00 +0800 Subject: [PATCH] fix --- httpclient/resty.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpclient/resty.go b/httpclient/resty.go index 16ec3d2..e50259b 100644 --- a/httpclient/resty.go +++ b/httpclient/resty.go @@ -103,9 +103,9 @@ func initRequestConfig(reqConfig *define.Request) { // Date : 15:00 2024/5/31 func NewRestyClient(reqConfig *define.Request, reqOption *RequestOption) (*resty.Client, *resty.Request, error) { client := resty.New() - defer func() { + /*defer func() { _ = client.Close() - }() + }()*/ request := client.R() if nil == reqConfig { return nil, nil, errors.New("request config is nil")