higher prefetch

This commit is contained in:
Andre Medeiros 2022-07-13 14:54:27 -04:00
parent 071b0db010
commit 624cebf8ef

View file

@ -93,7 +93,7 @@ func (nw *notificationsWorker) Start() error {
nw.logger.Info("starting up notifications worker", zap.Int("consumers", nw.consumers)) nw.logger.Info("starting up notifications worker", zap.Int("consumers", nw.consumers))
prefetchLimit := int64(nw.consumers * 2) prefetchLimit := int64(nw.consumers * 10)
if err := queue.StartConsuming(prefetchLimit, pollDuration); err != nil { if err := queue.StartConsuming(prefetchLimit, pollDuration); err != nil {
return err return err