mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-05-31 22:58:32 +00:00
clamp minimum no. senders to 1
This commit is contained in:
parent
fd7c958887
commit
e06617d24c
|
@ -83,6 +83,10 @@ func (w *Workers) Start() {
|
|||
|
||||
tryUntil("start delivery workerpool", 5, func() bool {
|
||||
n := config.GetAdvancedSenderMultiplier()
|
||||
if n < 1 {
|
||||
// clamp min senders to 1.
|
||||
return w.Delivery.Start(1)
|
||||
}
|
||||
return w.Delivery.Start(n * maxprocs)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue