This commit is contained in:
李子铭 2025-03-20 19:25:33 +08:00
parent 856d0058cb
commit 27aff98a72
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ func Test_db(t *testing.T) {
start2 := time.Now() start2 := time.Now()
errCount := 0 errCount := 0
var wg sync.WaitGroup var wg sync.WaitGroup
const concurrency = 500 // 调整并发数 const concurrency = 2 // 调整并发数
wg.Add(concurrency) wg.Add(concurrency)
for i := 0; i < concurrency; i++ { for i := 0; i < concurrency; i++ {