diff options
author | Xing Xin <xingxin.xx@bytedance.com> | 2024-01-02 06:10:48 +0300 |
---|---|---|
committer | Will Chandler <wchandler@gitlab.com> | 2024-01-17 22:12:43 +0300 |
commit | 36339ff6300a2cc727441aa897e2793bd2fcd98a (patch) | |
tree | 85abb862a6a39219643585785869aa626964cffb /internal/transaction/txinfo/transaction.go | |
parent | 2f1b99e352ec5c4e270e7ecb9e4234244bf37dee (diff) |
fix: Fix a collection of typos found by typos-cli
Fix typos found by typos-cli(https://github.com/crate-ci/typos). Some
affected tests are adjusted.
There are a bunch of other typos are ignored, including
* CHANGELOG.md
* NOTICE
* internal/.../migrations/20201208163237_cleanup_notifications_payload.go
* other intended typos or false positives
Signed-off-by: Xing Xin <xingxin.xx@bytedance.com>
Diffstat (limited to 'internal/transaction/txinfo/transaction.go')
-rw-r--r-- | internal/transaction/txinfo/transaction.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/transaction/txinfo/transaction.go b/internal/transaction/txinfo/transaction.go index 3f21bbd92..a198b2abe 100644 --- a/internal/transaction/txinfo/transaction.go +++ b/internal/transaction/txinfo/transaction.go @@ -60,9 +60,9 @@ func transactionFromSerialized(serialized string) (Transaction, error) { } // InjectTransaction injects reference transaction metadata into an incoming context -func InjectTransaction(ctx context.Context, tranasctionID uint64, node string, primary bool) (context.Context, error) { +func InjectTransaction(ctx context.Context, transactionID uint64, node string, primary bool) (context.Context, error) { transaction := Transaction{ - ID: tranasctionID, + ID: transactionID, Node: node, Primary: primary, } |