Skip to content

Commit

Permalink
Wrap booth advance in an async transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Nov 30, 2024
1 parent 138a38b commit b17fd4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/booth.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ class Booth {
const result = this.#locker.using(
[REDIS_ADVANCING],
10_000,
(signal) => this.#advanceLocked({ ...opts, signal }),
(signal) => this.#uw.db.transaction().execute(async (tx) => this.#advanceLocked({ ...opts, signal }, tx)),

Check failure on line 496 in src/plugins/booth.js

View workflow job for this annotation

GitHub Actions / Code style

This line has a length of 112. Maximum allowed is 100
);
this.#awaitAdvance = result;
return result;
Expand Down

0 comments on commit b17fd4d

Please sign in to comment.