Skip to content

Commit 258ad35

Browse files
committed
fix related comment
1 parent c3b086b commit 258ad35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/database/sql/sql.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1368,8 +1368,8 @@ func (db *DB) conn(ctx context.Context, strategy connReuseStrategy) (*driverConn
13681368

13691369
db.waitDuration.Add(int64(time.Since(waitStart)))
13701370

1371-
// If we failed to delete it, that means something else
1372-
// grabbed it and is about to send on it.
1371+
// If we failed to delete it, that means either the DB was closed or
1372+
// something else grabbed it and is about to send on it.
13731373
if !deleted {
13741374
// TODO(bradfitz): rather than this best effort select, we
13751375
// should probably start a goroutine to read from req. This best

0 commit comments

Comments
 (0)