Skip to content

Commit

Permalink
chore: avoid context from cancelation
Browse files Browse the repository at this point in the history
  • Loading branch information
ckartik committed Jul 4, 2024
1 parent 59b91b1 commit 8c9f0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/contracts/txmonitor/eth_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (e *evmHelper) BatchReceipts(ctx context.Context, txHashes []common.Hash) (
var err error
for attempts := 0; attempts < 50; attempts++ {
// Execute the batch request
err = e.client.BatchCallContext(ctx, batch)
err = e.client.BatchCallContext(context.Background(), batch)
if err != nil {
log.Printf("Batch call attempt %d failed: %v", attempts+1, err)
time.Sleep(1 * time.Second)
Expand Down

0 comments on commit 8c9f0a7

Please sign in to comment.