mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-15 00:17:42 +00:00
set proper http client on reddit
This commit is contained in:
parent
06bdb905e5
commit
ea45065dac
1 changed files with 6 additions and 1 deletions
|
@ -95,11 +95,16 @@ func NewClient(id, secret string, tracer trace.Tracer, statsd statsd.ClientInter
|
||||||
pool.Put(parsers[i])
|
pool.Put(parsers[i])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
httpClient := &http.Client{
|
||||||
|
Transport: otelhttp.NewTransport(http.DefaultTransport),
|
||||||
|
Timeout: 4 * time.Second,
|
||||||
|
}
|
||||||
|
|
||||||
return &Client{
|
return &Client{
|
||||||
id,
|
id,
|
||||||
secret,
|
secret,
|
||||||
tracer,
|
tracer,
|
||||||
otelhttp.DefaultClient,
|
httpClient,
|
||||||
pool,
|
pool,
|
||||||
statsd,
|
statsd,
|
||||||
redis,
|
redis,
|
||||||
|
|
Loading…
Reference in a new issue