Skip to content

Commit

Permalink
try a quickfix
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhwarrier committed Jul 15, 2024
1 parent 2f23d9b commit a3858c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration-tests/load/automationv2_1/gun.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func (m *LogTriggerGun) Call(_ *wasp.Generator) *wasp.Response {
resultCh := make(chan *wasp.Response, len(dividedData))

for _, a := range dividedData {
a1 := a
wg.Add(1)
go func(a [][]byte, m *LogTriggerGun) {
defer wg.Done()
Expand All @@ -103,7 +104,7 @@ func (m *LogTriggerGun) Call(_ *wasp.Generator) *wasp.Response {
return
}
resultCh <- &wasp.Response{}
}(a, m)
}(a1, m)
}
wg.Wait()
close(resultCh)
Expand Down

0 comments on commit a3858c3

Please sign in to comment.