Skip to content

Commit 2c0380e

Browse files
committed
style
1 parent 4514e46 commit 2c0380e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/query/session.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,9 @@ func (s *Session) Query(
181181

182182
func (s *Session) setStatusFromError(err error) {
183183
switch {
184-
case xerrors.IsTransportError(err) ||
185-
xerrors.IsOperationError(err, Ydb.StatusIds_SESSION_BUSY, Ydb.StatusIds_BAD_SESSION):
184+
case xerrors.IsTransportError(err):
185+
s.SetStatus(session.StatusError)
186+
case xerrors.IsOperationError(err, Ydb.StatusIds_SESSION_BUSY, Ydb.StatusIds_BAD_SESSION):
186187
s.SetStatus(session.StatusError)
187188
case xerrors.IsOperationError(err, Ydb.StatusIds_BAD_SESSION):
188189
s.SetStatus(session.StatusClosed)

0 commit comments

Comments
 (0)