From 2330ededfe17b3487ab30c31387a33424181786d Mon Sep 17 00:00:00 2001 From: Vladislav Klimenko Date: Wed, 2 Aug 2023 20:34:21 +0300 Subject: [PATCH] dev: clarify queues number --- pkg/controller/chi/controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/controller/chi/controller.go b/pkg/controller/chi/controller.go index cd0bc005d..c03dd6897 100644 --- a/pkg/controller/chi/controller.go +++ b/pkg/controller/chi/controller.go @@ -105,7 +105,8 @@ func NewController( // initQueues func (c *Controller) initQueues() { - for i := 0; i < chop.Config().Reconcile.Runtime.ReconcileCHIsThreadsNumber+chiV1.DefaultReconcileSystemThreadsNumber; i++ { + queuesNum := chop.Config().Reconcile.Runtime.ReconcileCHIsThreadsNumber+chiV1.DefaultReconcileSystemThreadsNumber + for i := 0; i < queuesNum; i++ { c.queues = append( c.queues, queue.New(),