diff --git a/internal/worker/notifications.go b/internal/worker/notifications.go index cd974f9..f3cc820 100644 --- a/internal/worker/notifications.go +++ b/internal/worker/notifications.go @@ -95,9 +95,7 @@ func (nw *notificationsWorker) Start() error { nw.logger.Info("starting up notifications worker", zap.Int("consumers", nw.consumers)) - prefetchLimit := int64(nw.consumers * 20) - - if err := queue.StartConsuming(prefetchLimit, pollDuration); err != nil { + if err := queue.StartConsuming(int64(nw.consumers/4), pollDuration); err != nil { return err }