Skip to content

Commit

Permalink
format: restore format of unchanged lines
Browse files Browse the repository at this point in the history
Signed-off-by: ekexium <eke@fastmail.com>
  • Loading branch information
ekexium committed Dec 26, 2023
1 parent 18bd3d1 commit 55ce5be
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions txnkv/transaction/2pc.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,7 @@ func (c *PlainMutations) AppendMutation(mutation PlainMutation) {
}

// newTwoPhaseCommitter creates a twoPhaseCommitter.
func newTwoPhaseCommitter(txn *KVTxn, sessionID uint64) (
*twoPhaseCommitter,
error,
) {
func newTwoPhaseCommitter(txn *KVTxn, sessionID uint64) (*twoPhaseCommitter,error) {
return &twoPhaseCommitter{
store: txn.store,
txn: txn,
Expand Down Expand Up @@ -922,10 +919,7 @@ const CommitSecondaryMaxBackoff = 41000

// doActionOnGroupedMutations splits groups into batches (there is one group per region, and potentially many batches per group, but all mutations
// in a batch will belong to the same region).
func (c *twoPhaseCommitter) doActionOnGroupMutations(
bo *retry.Backoffer,
action twoPhaseCommitAction, groups []groupedMutations,
) error {
func (c *twoPhaseCommitter) doActionOnGroupMutations(bo *retry.Backoffer, action twoPhaseCommitAction, groups []groupedMutations) error {
action.tiKVTxnRegionsNumHistogram().Observe(float64(len(groups)))

var sizeFunc = c.keySize
Expand Down

0 comments on commit 55ce5be

Please sign in to comment.