From 237f972e73870459dedfd307311e4262273651e4 Mon Sep 17 00:00:00 2001 From: anirudhwarrier <12178754+anirudhwarrier@users.noreply.github.com> Date: Mon, 15 Jul 2024 23:54:38 +0400 Subject: [PATCH] try another quickfix --- integration-tests/load/automationv2_1/gun.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/integration-tests/load/automationv2_1/gun.go b/integration-tests/load/automationv2_1/gun.go index 8eac140cf40..835b41d6a94 100644 --- a/integration-tests/load/automationv2_1/gun.go +++ b/integration-tests/load/automationv2_1/gun.go @@ -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)