finish adding more code comments

This commit is contained in:
kim 2024-04-05 15:48:36 +01:00
parent 9264a82337
commit fd7c958887

View file

@ -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)
})