don't prefetch as much

This commit is contained in:
Andre Medeiros 2021-07-13 19:48:23 -04:00
parent 2a98be36ae
commit b98f8345a5

View file

@ -79,7 +79,7 @@ func (nw *notificationsWorker) Start(consumers int) error {
"numConsumers": consumers,
}).Info("starting up notifications worker")
prefetchLimit := int64(consumers * 8)
prefetchLimit := int64(consumers * 2)
if err := queue.StartConsuming(prefetchLimit, pollDuration); err != nil {
return err