diff --git a/Procfile b/Procfile index ffba5cb..f654619 100644 --- a/Procfile +++ b/Procfile @@ -1,3 +1,3 @@ web: apollo api scheduler: apollo scheduler -worker-notifications: apollo worker --queue notifications --multiplier 32 +worker-notifications: apollo worker --queue notifications --multiplier 128 diff --git a/internal/reddit/client.go b/internal/reddit/client.go index 94393e3..db6f917 100644 --- a/internal/reddit/client.go +++ b/internal/reddit/client.go @@ -69,7 +69,7 @@ func NewClient(id, secret string, statsd *statsd.Client, connLimit int) *Client t.MaxIdleConns = connLimit / 4 t.MaxConnsPerHost = connLimit t.MaxIdleConnsPerHost = connLimit / 4 - t.IdleConnTimeout = 10 * time.Second + t.IdleConnTimeout = 60 * time.Second t.ResponseHeaderTimeout = 5 * time.Second client := &http.Client{Transport: t}