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