set proper http client on reddit

This commit is contained in:
Andre Medeiros 2022-11-05 15:43:00 -04:00
parent 06bdb905e5
commit ea45065dac

View file

@ -95,11 +95,16 @@ func NewClient(id, secret string, tracer trace.Tracer, statsd statsd.ClientInter
pool.Put(parsers[i])
}
httpClient := &http.Client{
Transport: otelhttp.NewTransport(http.DefaultTransport),
Timeout: 4 * time.Second,
}
return &Client{
id,
secret,
tracer,
otelhttp.DefaultClient,
httpClient,
pool,
statsd,
redis,