Skip to content

Commit 4a3769b

Browse files
authored
Merge pull request #1368 from ydb-platform/tx-parent
renamed tx.Parent to tx.ID
2 parents f067019 + 7816411 commit 4a3769b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

internal/query/transaction.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
var _ query.Transaction = (*transaction)(nil)
1919

2020
type transaction struct {
21-
tx.Parent
21+
tx.Identifier
2222

2323
s *Session
2424
}
@@ -65,8 +65,8 @@ func (tx transaction) ReadResultSet(ctx context.Context, q string, opts ...optio
6565

6666
func newTransaction(id string, s *Session) *transaction {
6767
return &transaction{
68-
Parent: tx.Parent(id),
69-
s: s,
68+
Identifier: tx.ID(id),
69+
s: s,
7070
}
7171
}
7272

internal/query/tx/id.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package tx
22

3-
var _ Identifier = (*Parent)(nil)
3+
var _ Identifier = (*ID)(nil)
44

5-
type Parent string
5+
type ID string
66

7-
func (id Parent) ID() string {
7+
func (id ID) ID() string {
88
return string(id)
99
}
1010

11-
func (id Parent) isYdbTx() {}
11+
func (id ID) isYdbTx() {}

0 commit comments

Comments
 (0)