Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
faddat and coderabbitai[bot] authored Oct 28, 2024
1 parent 26dcf75 commit f662930
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ func TransferFunds(sender types.Account, receiverAddress string, amount sdkmath.
},
}

ctx := context.Background()
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()

maxRetries := 3
for attempt := 0; attempt < maxRetries; attempt++ {
Expand Down

0 comments on commit f662930

Please sign in to comment.