8 per CPU

This commit is contained in:
Andre Medeiros 2021-07-05 20:43:59 -04:00
parent a76cc5f532
commit 245c9fe68c

View file

@ -26,7 +26,7 @@ type application struct {
client *reddit.Client 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) { 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")) authKey, err := token.AuthKeyFromFile(os.Getenv("APPLE_AUTHKEY_PATH"))