mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:18:52 +00:00
finish adding more code comments
This commit is contained in:
parent
9264a82337
commit
fd7c958887
1 changed files with 5 additions and 2 deletions
|
@ -33,7 +33,10 @@ type Workers struct {
|
|||
// Main task scheduler instance.
|
||||
Scheduler scheduler.Scheduler
|
||||
|
||||
// ...
|
||||
// Delivery provides a worker pool that
|
||||
// handles outgoing ActivityPub deliveries.
|
||||
// It contains an embedded (but accessible)
|
||||
// indexed queue of Delivery{} objects.
|
||||
Delivery delivery.WorkerPool
|
||||
|
||||
// ClientAPI provides a worker pool that handles both
|
||||
|
@ -78,7 +81,7 @@ func (w *Workers) Start() {
|
|||
|
||||
tryUntil("starting scheduler", 5, w.Scheduler.Start)
|
||||
|
||||
tryUntil("start ap delivery workerpool", 5, func() bool {
|
||||
tryUntil("start delivery workerpool", 5, func() bool {
|
||||
n := config.GetAdvancedSenderMultiplier()
|
||||
return w.Delivery.Start(n * maxprocs)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue