From 35fc8fbde41a4e5c35843979866c7ea0fa06151c Mon Sep 17 00:00:00 2001 From: Sebastian Winkler Date: Wed, 3 Jan 2018 14:14:03 +0100 Subject: [PATCH] [instagram] increases amount of threads --- helpers/gimmeproxy.go | 4 ++-- modules/plugins/instagram/loops.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helpers/gimmeproxy.go b/helpers/gimmeproxy.go index 428d835d..184368f3 100644 --- a/helpers/gimmeproxy.go +++ b/helpers/gimmeproxy.go @@ -12,7 +12,7 @@ import ( const ( PROXIES_KEY = "robyul-discord:gimmeproxy:proxies" - NUMBER_OF_PROXIES = 100 + NUMBER_OF_PROXIES = 150 ) var ( @@ -93,7 +93,7 @@ func GetRandomProxy() (proxy http.Transport, err error) { return proxy, err } - cache.GetLogger().WithField("module", "gimmeproxy").Info("got proxy from cache: ", randomProxyUrl) + //cache.GetLogger().WithField("module", "gimmeproxy").Info("got proxy from cache: ", randomProxyUrl) transport := http.Transport{Proxy: http.ProxyURL(randomProxyUrl)} return transport, nil diff --git a/modules/plugins/instagram/loops.go b/modules/plugins/instagram/loops.go index 88c29b60..cec1709e 100644 --- a/modules/plugins/instagram/loops.go +++ b/modules/plugins/instagram/loops.go @@ -17,7 +17,7 @@ import ( ) const ( - InstagramGraphQlWorkers = 10 + InstagramGraphQlWorkers = 15 ) func (m *Handler) checkInstagramGraphQlFeedLoop() {