Skip to content

Commit

Permalink
capture
Browse files Browse the repository at this point in the history
  • Loading branch information
ying-zhu committed Oct 21, 2022
1 parent c02b655 commit 67c7382
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pilot/pkg/model/push_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -1678,9 +1678,10 @@ func (ps *PushContext) initSidecarScopes(env *Environment, wp *PushContextWorker

go func() {
for i := 0; i < n; i++ {
j := i
work := func() {
defer wg.Done()
c := sidecarConfigs[i]
c := sidecarConfigs[j]
ch <- ConvertToSidecarScope(ps, &c, c.Namespace)
}
wp.PushWork(work)
Expand Down

0 comments on commit 67c7382

Please sign in to comment.