chore: use range loop (#18176)
This commit is contained in:
parent
4cce98caf5
commit
f469be6f73
16 changed files with 19 additions and 19 deletions
|
|
@ -13,7 +13,7 @@ import (
|
|||
|
||||
func workers(log *util.Logger, num int, tasks <-chan string, hits chan<- []tasks.Result) *sync.WaitGroup {
|
||||
var wg sync.WaitGroup
|
||||
for i := 0; i < num; i++ {
|
||||
for range num {
|
||||
wg.Add(1)
|
||||
go func() {
|
||||
workunit(log, tasks, hits)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue