Skip to content

Commit

Permalink
dont throw on timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
wphan committed Dec 21, 2024
1 parent eb4b7e6 commit 6432dd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/experimental-bots/entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ const runBot = async () => {
confirmationStrategy: ConfirmationStrategy.Polling,
additionalConnections,
trackTxLandRate: config.global.trackTxLandRate,
throwOnTimeoutError: false,
});
} else if (txSenderType === 'while-valid') {
txSender = new WhileValidTxSender({
Expand All @@ -207,6 +208,7 @@ const runBot = async () => {
additionalConnections,
trackTxLandRate: config.global.trackTxLandRate,
confirmationStrategy,
throwOnTimeoutError: false,
});
}

Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ const runBot = async () => {
confirmationStrategy,
additionalConnections,
trackTxLandRate: config.global.trackTxLandRate,
throwOnTimeoutError: false,
});
} else if (txSenderType === 'while-valid') {
txSender = new WhileValidTxSender({
Expand All @@ -369,6 +370,7 @@ const runBot = async () => {
skipConfirmation,
additionalConnections,
trackTxLandRate: config.global.trackTxLandRate,
throwOnTimeoutError: false,
});
}

Expand Down

0 comments on commit 6432dd0

Please sign in to comment.