Skip to content

Commit

Permalink
use const
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed May 9, 2024
1 parent d825100 commit 2e61d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/schedule/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2e61d30

Please sign in to comment.