mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 08:06:59 +00:00
Other: Sneaky worker count bump (*2 -> *4)
This commit is contained in:
@ -52,7 +52,7 @@ type Settings struct {
|
|||||||
func GetDefaultSyncWorkerCount() int {
|
func GetDefaultSyncWorkerCount() int {
|
||||||
const minSyncWorkers = 16
|
const minSyncWorkers = 16
|
||||||
|
|
||||||
syncWorkers := runtime.NumCPU() * 2
|
syncWorkers := runtime.NumCPU() * 4
|
||||||
|
|
||||||
if syncWorkers < minSyncWorkers {
|
if syncWorkers < minSyncWorkers {
|
||||||
syncWorkers = minSyncWorkers
|
syncWorkers = minSyncWorkers
|
||||||
|
|||||||
Reference in New Issue
Block a user