From 2e61d305c2347520dfe3d77316f4f6740e70496b Mon Sep 17 00:00:00 2001 From: lhy1024 Date: Thu, 9 May 2024 23:29:49 +0800 Subject: [PATCH] use const Signed-off-by: lhy1024 --- pkg/schedule/coordinator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/schedule/coordinator.go b/pkg/schedule/coordinator.go index 3708acf12a7..ece4162a7c9 100644 --- a/pkg/schedule/coordinator.go +++ b/pkg/schedule/coordinator.go @@ -160,7 +160,7 @@ func (c *Coordinator) PatrolRegions() { defer ticker.Stop() workersCount := c.cluster.GetCheckerConfig().GetPatrolRegionConcurrency() - regionChan := make(chan *core.RegionInfo, c.cluster.GetCheckerConfig().GetPatrolRegionConcurrency()) + regionChan := make(chan *core.RegionInfo, 65536) quit := make(chan bool) var wg sync.WaitGroup c.startPatrolRegionWorkers(workersCount, regionChan, quit, &wg)