Skip to content

Commit ebc6748

Browse files
committed
typo
1 parent 2c0380e commit ebc6748

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

internal/query/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ func CreateSession(ctx context.Context, c *Client) (*Session, error) {
533533
return nil, xerrors.WithStackTrace(err)
534534
}
535535

536-
s.laztTx = c.config.LazyTx()
536+
s.lazyTx = c.config.LazyTx()
537537

538538
return s, nil
539539
})
@@ -584,7 +584,7 @@ func New(ctx context.Context, cc grpc.ClientConnInterface, cfg *config.Config) *
584584
return nil, xerrors.WithStackTrace(err)
585585
}
586586

587-
s.laztTx = cfg.LazyTx()
587+
s.lazyTx = cfg.LazyTx()
588588

589589
return s, nil
590590
}),

internal/query/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ func newTestSessionWithClient(id string, client Ydb_Query_V1.QueryServiceClient,
15801580
Core: &sessionControllerMock{id: id},
15811581
client: client,
15821582
trace: &trace.Query{},
1583-
laztTx: lazyTx,
1583+
lazyTx: lazyTx,
15841584
}
15851585
}
15861586

internal/query/session.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type (
2424

2525
client Ydb_Query_V1.QueryServiceClient
2626
trace *trace.Query
27-
laztTx bool
27+
lazyTx bool
2828
}
2929
)
3030

@@ -116,7 +116,7 @@ func (s *Session) Begin(
116116
}
117117
}()
118118

119-
if s.laztTx {
119+
if s.lazyTx {
120120
return &Transaction{
121121
s: s,
122122
txSettings: txSettings,

0 commit comments

Comments
 (0)