From 447a21ba602eb6a2b9734b28a172243955fe3f13 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Sat, 5 Nov 2022 20:31:55 -0400 Subject: [PATCH] increase prefetch --- internal/worker/notifications.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/worker/notifications.go b/internal/worker/notifications.go index 27ed694..f4a0d64 100644 --- a/internal/worker/notifications.go +++ b/internal/worker/notifications.go @@ -101,7 +101,7 @@ func (nw *notificationsWorker) Start() error { nw.logger.Info("starting up notifications worker", zap.Int("consumers", nw.consumers)) - if err := queue.StartConsuming(int64(nw.consumers/4), pollDuration); err != nil { + if err := queue.StartConsuming(int64(nw.consumers*2), pollDuration); err != nil { return err }