File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff 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.
1412const maxBadConnRetries = 10
1513
1614var (
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
You can’t perform that action at this time.
0 commit comments