Skip to content

Commit 5214673

Browse files
committed
Update comments about connectionPerished isAlive
1 parent 0f7e330 commit 5214673

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

x/mongo/driver/topology/pool.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ func connectionPerished(conn *connection) (reason, bool) {
171171
switch {
172172
case conn.closed():
173173
// A connection would only be closed if it encountered a network error
174-
// during an operation and closed itself. If a connection is not alive
175-
// (e.g. the connection was closed by the server-side), it's also
176-
// considered a network error.
174+
// during an operation and closed itself.
177175
return reason{
178176
loggerConn: logger.ReasonConnClosedError,
179177
event: event.ReasonError,

0 commit comments

Comments
 (0)