From 07641871f2236de7e7b42e877ad645d5732ea843 Mon Sep 17 00:00:00 2001 From: ziming Date: Fri, 23 May 2025 11:43:44 +0800 Subject: [PATCH] chang code --- internal/pkg/request/request.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/internal/pkg/request/request.go b/internal/pkg/request/request.go index 1d21ea8..6d9a77f 100644 --- a/internal/pkg/request/request.go +++ b/internal/pkg/request/request.go @@ -6,7 +6,6 @@ import ( "fmt" "io" "net/http" - "time" ) type Options struct { @@ -28,14 +27,7 @@ func NewOptions(options ...Option) *Options { return code == http.StatusOK }, - HttpClient: &http.Client{ - Timeout: 10 * time.Second, - Transport: &http.Transport{ - MaxIdleConns: 10, // 最大空闲连接数 - MaxIdleConnsPerHost: 5, // 每个主机的最大空闲连接数 - IdleConnTimeout: 10 * time.Second, // 空闲连接超时时间 - }, - }, + HttpClient: http.DefaultClient, } for _, option := range options {