Skip to content

Commit

Permalink
Merge pull request #574 from helium/bugfix/timeout-await
Browse files Browse the repository at this point in the history
Fix await timeout
  • Loading branch information
ChewingGlass authored Feb 6, 2024
2 parents 9b0c391 + 8e2cd0d commit a49db81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/spl-utils/src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ export async function sendAndConfirmWithRetry(
console.log("txid", txid);
const startTime = getUnixTime();
(async () => {
while (!done && getUnixTime() - startTime < timeout) {
while (!done && getUnixTime() - startTime < (timeout / 1000)) {
await connection.sendRawTransaction(txn, sendOptions);
await sleep(500);
}
Expand Down

0 comments on commit a49db81

Please # to comment.