reduce prefetch

This commit is contained in:
Andre Medeiros 2022-11-02 18:29:52 -04:00
parent b1aac725aa
commit 31de625d04

View file

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