try reddit without verifyign certificates

This commit is contained in:
Andre Medeiros 2022-11-01 19:41:49 -04:00
parent 0b81d4c9d3
commit b1aac725aa

View file

@ -2,6 +2,7 @@ package reddit
import (
"context"
"crypto/tls"
"fmt"
"io"
"net/http"
@ -99,6 +100,7 @@ func NewClient(id, secret string, statsd statsd.ClientInterface, redis *redis.Cl
t.MaxIdleConns = connLimit / 2
t.MaxConnsPerHost = connLimit
t.MaxIdleConnsPerHost = 100
t.TLSClientConfig = &tls.Config{InsecureSkipVerify: true} // TODO(andremedeiros): remove
client := &http.Client{
Timeout: 5 * time.Second,
Transport: t,