Skip to content

Commit c171d6d

Browse files
committed
refactor code
1 parent ebcac81 commit c171d6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func CallbackTx(ctx context.Context, db *sql.DB, callback func(ctx2 context.Cont
111111
func ExecuteTx(ctx context.Context, db *sql.DB, callback func(context.Context)(int64, error), opts ...*sql.TxOptions) (int64, error) {
112112
var res int64
113113
er0 := CallbackTx(ctx, db, func(ctx2 context.Context) error {
114-
result, err := callback(ctx)
114+
result, err := callback(ctx2)
115115
if err != nil {
116116
return err
117117
}

0 commit comments

Comments
 (0)