Use WaitGroup.Go to simplify code (#7253)

Signed-off-by: mickychang9 <mickychang9@outlook.com>
This commit is contained in:
mickychang9 authored and GitHub committed 2025-09-11 10:15:09 -06:00
1 parent b462615439
commit bcd4055e89
1 file changed
+2 -4
+2 -4
View File
@@ -149,11 +149,9 @@ func TestLoadConcurrent(t *testing.T) {
var wg sync.WaitGroup
for i := 0; i < 100; i++ {
wg.Add(1)
go func() {
wg.Go(func() {
_ = Load(testCfg, true)
wg.Done()
}()
})
}
wg.Wait()
}