Skip to content

Commit

Permalink
try another quickfix
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhwarrier committed Jul 15, 2024
1 parent a3858c3 commit 237f972
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions integration-tests/load/automationv2_1/gun.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,20 @@ func (m *LogTriggerGun) Call(_ *wasp.Generator) *wasp.Response {

resultCh := make(chan *wasp.Response, len(dividedData))

for _, a := range dividedData {
a1 := a
for _, data := range dividedData {
a := data
wg.Add(1)
go func(a [][]byte, m *LogTriggerGun) {
go func(t [][]byte, m *LogTriggerGun) {
defer wg.Done()

_, err := contracts.MultiCallLogTriggerLoadGen(m.client, m.multiCallAddress, m.addresses, a)
_, err := contracts.MultiCallLogTriggerLoadGen(m.client, m.multiCallAddress, m.addresses, t)
if err != nil {
m.logger.Error().Err(err).Msg("Error calling MultiCallLogTriggerLoadGen")
resultCh <- &wasp.Response{Error: err.Error(), Failed: true}
return
}
resultCh <- &wasp.Response{}
}(a1, m)
}(a, m)
}
wg.Wait()
close(resultCh)
Expand Down

0 comments on commit 237f972

Please sign in to comment.