try using default client

This commit is contained in:
Andre Medeiros 2021-07-07 22:25:57 -04:00
parent b55bb4839b
commit ff6bbf2a6f

View file

@ -26,10 +26,6 @@ type Client struct {
} }
func NewClient(id, secret string, statsd *statsd.Client) *Client { func NewClient(id, secret string, statsd *statsd.Client) *Client {
tr := &http.Transport{
MaxIdleConnsPerHost: 128,
}
tracer := &httptrace.ClientTrace{ tracer := &httptrace.ClientTrace{
GotConn: func(info httptrace.GotConnInfo) { GotConn: func(info httptrace.GotConnInfo) {
if info.Reused { if info.Reused {
@ -40,7 +36,7 @@ func NewClient(id, secret string, statsd *statsd.Client) *Client {
}, },
} }
client := &http.Client{Transport: tr} client := &http.Client{}
parser := &fastjson.Parser{} parser := &fastjson.Parser{}