Skip to content

Commit

Permalink
moved internal/operation.ErrNotReady to internal/conn.errOperationNot…
Browse files Browse the repository at this point in the history
…Ready
  • Loading branch information
asmyasnikov committed Feb 28, 2023
1 parent 313e158 commit f8c75f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/conn/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
)

var (
// errNotReady specified error when operation is not ready
errNotReady = xerrors.Wrap(fmt.Errorf("operation is not ready yet"))
// errOperationNotReady specified error when operation is not ready
errOperationNotReady = xerrors.Wrap(fmt.Errorf("operation is not ready yet"))

// errClosedConnection specified error when connection are closed early
errClosedConnection = xerrors.Wrap(fmt.Errorf("connection closed early"))
Expand Down Expand Up @@ -355,7 +355,7 @@ func (c *conn) Invoke(
if useWrapping {
switch {
case !o.GetOperation().GetReady():
return xerrors.WithStackTrace(errNotReady)
return xerrors.WithStackTrace(errOperationNotReady)

case o.GetOperation().GetStatus() != Ydb.StatusIds_SUCCESS:
return xerrors.WithStackTrace(
Expand Down

0 comments on commit f8c75f8

Please sign in to comment.