Skip to content

ref(performance): Remove TransactionArc type alias - #1327

Open
szokeasaurusrex wants to merge 1 commit into
szokeasaurusrex/extract-org_id-determinationfrom
szokeasaurusrex/no-transaction-arc-type
Open

szokeasaurusrex wants to merge 1 commit into
szokeasaurusrex/extract-org_id-determinationfrom
szokeasaurusrex/no-transaction-arc-type

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Get rid of the TransactionArc type alias, and use the Transaction type directly, instead.

This allows us to use the methods that Transaction provides anywhere we were previously just storing the inner TransactionArc directly. As Transaction is basically just a new type wrapper around Arc<Mutex<TransactionInner>> (which TransactionArc was previously defined as), there is little benefit to use TransactionArc rather than Transaction.

Overall, this should slighlty simplify the code.

Get rid of the `TransactionArc` type alias, and use the `Transaction` type directly, instead.

This allows us to use the methods that `Transaction` provides anywhere we were previously just storing the inner `TransactionArc` directly. As `Transaction` is basically just a new type wrapper around `Arc<Mutex<TransactionInner>>` (which `TransactionArc` was previously defined as), there is little benefit to use `TransactionArc` rather than `Transaction`.

Overall, this should slighlty simplify the code.
@szokeasaurusrex
szokeasaurusrex marked this pull request as ready for review September 22, 2026 13:42
@szokeasaurusrex
szokeasaurusrex requested a review from a team as a code owner September 22, 2026 13:42

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants