Skip to content

Commit 3877378

Browse files
committed
godoc: add a note abount Shutdown state
We forgot to update a comment about the state. Part of #257
1 parent ab957c4 commit 3877378

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

connection.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ func (d defaultLogger) Report(event ConnLogKind, conn *Connection, v ...interfac
109109
// - In "Disconnected" state it rejects queries with ClientError{Code:
110110
// ErrConnectionNotReady}
111111
//
112+
// - In "Shutdown" state it rejects queries with ClientError{Code:
113+
// ErrConnectionShutdown}. The state indicates that a graceful shutdown
114+
// in progress. The connection waits for all active requests to
115+
// complete.
116+
//
112117
// - In "Closed" state it rejects queries with ClientError{Code:
113118
// ErrConnectionClosed}. Connection could become "Closed" when
114119
// Connection.Close() method called, or when Tarantool disconnected and

0 commit comments

Comments
 (0)