mirror of
https://github.com/golang/go
synced 2024-11-27 03:31:29 -07:00
database/sql: fix comment on DB.stop()
Previously, 2 goroutines were created in OpenDB and a comment in the DB.close() field indicated that they were canceled. Later, session Resetter () was removed, but the comment remained the same. This commit just fixes this message
Change-Id: Ie81026f51d7770e9cf8004818154021f626fb2e8
GitHub-Last-Rev: 38b338a0d1
GitHub-Pull-Request: golang/go#42191
Reviewed-on: https://go-review.googlesource.com/c/go/+/264838
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Trust: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
69496a2268
commit
de477138d1
@ -434,7 +434,7 @@ type DB struct {
|
|||||||
maxIdleTimeClosed int64 // Total number of connections closed due to idle time.
|
maxIdleTimeClosed int64 // Total number of connections closed due to idle time.
|
||||||
maxLifetimeClosed int64 // Total number of connections closed due to max connection lifetime limit.
|
maxLifetimeClosed int64 // Total number of connections closed due to max connection lifetime limit.
|
||||||
|
|
||||||
stop func() // stop cancels the connection opener and the session resetter.
|
stop func() // stop cancels the connection opener.
|
||||||
}
|
}
|
||||||
|
|
||||||
// connReuseStrategy determines how (*DB).conn returns database connections.
|
// connReuseStrategy determines how (*DB).conn returns database connections.
|
||||||
|
Loading…
Reference in New Issue
Block a user