mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-26 05:37:42 +00:00
try using default client
This commit is contained in:
parent
b55bb4839b
commit
ff6bbf2a6f
1 changed files with 1 additions and 5 deletions
|
@ -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{}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue