chore: use range loop (#18176)

This commit is contained in:
andig 2025-01-11 16:47:25 +01:00 • committed by GitHub
parent 4cce98caf5
commit f469be6f73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 19 additions and 19 deletions

View file

@ -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)