mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-31 02:09:27 +08:00 
			
		
		
		
	Use WaitGroup.Go to simplify code (#7253)
Signed-off-by: mickychang9 <mickychang9@outlook.com>
This commit is contained in:
		| @ -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() | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 mickychang9
					mickychang9