Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rekby committed Jan 15, 2025
1 parent 2c0380e commit ebc6748
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions internal/query/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down Expand Up @@ -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
}),
Expand Down
2 changes: 1 addition & 1 deletion internal/query/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down
4 changes: 2 additions & 2 deletions internal/query/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type (

client Ydb_Query_V1.QueryServiceClient
trace *trace.Query
laztTx bool
lazyTx bool
}
)

Expand Down Expand Up @@ -116,7 +116,7 @@ func (s *Session) Begin(
}
}()

if s.laztTx {
if s.lazyTx {
return &Transaction{
s: s,
txSettings: txSettings,
Expand Down

0 comments on commit ebc6748

Please sign in to comment.