mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-25 13:17:42 +00:00
reduce prefetch
This commit is contained in:
parent
b1aac725aa
commit
31de625d04
1 changed files with 1 additions and 3 deletions
|
@ -95,9 +95,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 * 20)
|
if err := queue.StartConsuming(int64(nw.consumers/4), pollDuration); err != nil {
|
||||||
|
|
||||||
if err := queue.StartConsuming(prefetchLimit, pollDuration); err != nil {
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue