mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-02-11 02:27:07 +01:00
increase default worker count to 4 per cpu
This commit is contained in:
parent
c1f225f373
commit
d2c512575c
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ func NewWorkerPool[MsgType any](workers int, queueRatio int) *WorkerPool[MsgType
|
|||
|
||||
if workers < 1 {
|
||||
// ensure sensible workers
|
||||
workers = runtime.GOMAXPROCS(0) * 2
|
||||
workers = runtime.GOMAXPROCS(0) * 4
|
||||
}
|
||||
if queueRatio < 1 {
|
||||
// ensure sensible ratio
|
||||
|
|
Loading…
Reference in a new issue