fix
This commit is contained in:
@ -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")
|
||||
|
||||
Reference in New Issue
Block a user