This commit is contained in:
laodaming
2023-06-13 17:51:12 +08:00
parent d941402ef1
commit 8b85f3b6ce
2 changed files with 5 additions and 6 deletions

View File

@@ -194,9 +194,8 @@ func (l *CartListLogic) getUserCartRelativeList(ctx context.Context, userId int6
}
//******************************协程并发开始***********************************
wait := sync.WaitGroup{}
gorutine := 6 //注意要加协程这里要记得加
errChan := make(chan error, gorutine)
wait.Add(gorutine)
errChan := make(chan error)
wait.Add(6) //注意要加协程这里要记得加
//获取产品数据1
go func() {
defer wait.Done()