Skip to content

Commit

Permalink
dev: clarify queues number
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsingerus committed Aug 2, 2023
1 parent 8ae6e90 commit 2330ede
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/chi/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 2330ede

Please sign in to comment.