Skip to content

Commit 81803c9

Browse files
committed
Updated comments
1 parent a75c556 commit 81803c9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pool_conn.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"sync"
66
)
77

8-
// ErrBadConn should be returned by a driver to signal to the sql
9-
// package that a driver.Conn is in a bad state (such as the server
10-
// having earlier closed the connection) and the sql package should
11-
// retry on a new connection.
8+
// ErrBadConn should be returned by a connection operation to signal to the
9+
// pool that a driver.Conn is in a bad state (such as the server
10+
// having earlier closed the connection) and the pool should retry on a
11+
// new connection.
1212
//
1313
// To prevent duplicate operations, ErrBadConn should NOT be returned
1414
// if there's a possibility that the database server might have

session.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (s *Session) SetMaxOpenConns(n int) {
145145
s.pool.SetMaxOpenConns(n)
146146
}
147147

148-
// noreplyWait ensures that previous queries with the noreply flag have been
148+
// NoReplyWait ensures that previous queries with the noreply flag have been
149149
// processed by the server. Note that this guarantee only applies to queries
150150
// run on the given connection
151151
func (s *Session) NoReplyWait() error {

0 commit comments

Comments
 (0)