mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +00:00
8 per CPU
This commit is contained in:
parent
a76cc5f532
commit
245c9fe68c
1 changed files with 1 additions and 1 deletions
|
@ -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"))
|
||||||
|
|
Loading…
Reference in a new issue