Skip to content

Commit 8c9f0a7

Browse files
committed
chore: avoid context from cancelation
1 parent 59b91b1 commit 8c9f0a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

x/contracts/txmonitor/eth_helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func (e *evmHelper) BatchReceipts(ctx context.Context, txHashes []common.Hash) (
117117
var err error
118118
for attempts := 0; attempts < 50; attempts++ {
119119
// Execute the batch request
120-
err = e.client.BatchCallContext(ctx, batch)
120+
err = e.client.BatchCallContext(context.Background(), batch)
121121
if err != nil {
122122
log.Printf("Batch call attempt %d failed: %v", attempts+1, err)
123123
time.Sleep(1 * time.Second)

0 commit comments

Comments
 (0)