From 71884ccb8089b47e874e72d24d28021a9c35be73 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Tue, 13 Jul 2021 20:34:04 -0400 Subject: [PATCH] multiply procfile some more --- Procfile | 2 +- internal/reddit/client.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}