From 245c9fe68c0f12569b1a4e062a66ce6699edcf7e Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Mon, 5 Jul 2021 20:43:59 -0400 Subject: [PATCH] 8 per CPU --- cmd/apollo-worker/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/apollo-worker/main.go b/cmd/apollo-worker/main.go index 4e7a041..0747bf9 100644 --- a/cmd/apollo-worker/main.go +++ b/cmd/apollo-worker/main.go @@ -26,7 +26,7 @@ type application struct { client *reddit.Client } -var workers int = runtime.NumCPU() * 2 +var workers int = runtime.NumCPU() * 8 func accountWorker(id int, rc *reddit.Client, db *sql.DB, logger *log.Logger, quit chan bool) { authKey, err := token.AuthKeyFromFile(os.Getenv("APPLE_AUTHKEY_PATH"))