Skip to content

Commit aeb2978

Browse files
fix: retrying transactions was broken (#242)
1 parent 8149428 commit aeb2978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shared/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ export async function txInternal<
8787
options: TTransactionOptions | undefined,
8888
): Promise<TResult> {
8989
let failureCount = 0;
90-
await driver.beginTransaction(options);
9190
while (true) {
91+
await driver.beginTransaction(options);
9292
const postCommitSteps: (() => Promise<void>)[] = [];
9393
const tx = factories.createTransaction(driver, {
9494
addPostCommitStep: (fn) => {

0 commit comments

Comments
 (0)