From ebc674883cc6291f8f61d6c908b18a737dce3ba8 Mon Sep 17 00:00:00 2001 From: Timofey Koolin Date: Wed, 15 Jan 2025 20:19:56 +0300 Subject: [PATCH] typo --- internal/query/client.go | 4 ++-- internal/query/client_test.go | 2 +- internal/query/session.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/query/client.go b/internal/query/client.go index 2d720bf09..aa6727ed9 100644 --- a/internal/query/client.go +++ b/internal/query/client.go @@ -533,7 +533,7 @@ func CreateSession(ctx context.Context, c *Client) (*Session, error) { return nil, xerrors.WithStackTrace(err) } - s.laztTx = c.config.LazyTx() + s.lazyTx = c.config.LazyTx() return s, nil }) @@ -584,7 +584,7 @@ func New(ctx context.Context, cc grpc.ClientConnInterface, cfg *config.Config) * return nil, xerrors.WithStackTrace(err) } - s.laztTx = cfg.LazyTx() + s.lazyTx = cfg.LazyTx() return s, nil }), diff --git a/internal/query/client_test.go b/internal/query/client_test.go index 1a1933ab4..2006b378f 100644 --- a/internal/query/client_test.go +++ b/internal/query/client_test.go @@ -1580,7 +1580,7 @@ func newTestSessionWithClient(id string, client Ydb_Query_V1.QueryServiceClient, Core: &sessionControllerMock{id: id}, client: client, trace: &trace.Query{}, - laztTx: lazyTx, + lazyTx: lazyTx, } } diff --git a/internal/query/session.go b/internal/query/session.go index 3d77fe6cf..138cb7ca0 100644 --- a/internal/query/session.go +++ b/internal/query/session.go @@ -24,7 +24,7 @@ type ( client Ydb_Query_V1.QueryServiceClient trace *trace.Query - laztTx bool + lazyTx bool } ) @@ -116,7 +116,7 @@ func (s *Session) Begin( } }() - if s.laztTx { + if s.lazyTx { return &Transaction{ s: s, txSettings: txSettings,