Skip to content

Commit 1b4e3eb

Browse files
committed
Remove ErrBadConn
1 parent 845d1e3 commit 1b4e3eb

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

pool.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,12 @@ import (
99
"gopkg.in/fatih/pool.v2"
1010
)
1111

12-
// maxBadConnRetries is the number of maximum retries if the driver returns
13-
// driver.ErrBadConn to signal a broken connection.
1412
const maxBadConnRetries = 10
1513

1614
var (
1715
errPoolClosed = errors.New("gorethink: pool is closed")
1816
errConnClosed = errors.New("gorethink: conn is closed")
1917
errConnBusy = errors.New("gorethink: conn is busy")
20-
21-
// ErrBadConn should be returned by a connection operation to signal to the
22-
// pool that a driver.Conn is in a bad state (such as the server
23-
// having earlier closed the connection) and the pool should retry on a
24-
// new connection.
25-
//
26-
// To prevent duplicate operations, ErrBadConn should NOT be returned
27-
// if there's a possibility that the database server might have
28-
// performed the operation. Even if the server sends back an error,
29-
// you shouldn't return ErrBadConn.
30-
ErrBadConn = errors.New("gorethink: bad connection")
3118
)
3219

3320
// A Pool is used to store a pool of connections to a single RethinkDB server

0 commit comments

Comments
 (0)