2
0

Replace connection pool

This commit is contained in:
Jack Christensen
2019-04-10 11:09:42 -05:00
parent ec10fdde8b
commit 77a2da2b46
9 changed files with 42 additions and 1602 deletions
-5
View File
@@ -19,7 +19,6 @@ type batchItem struct {
// unnecessary network round trips.
type Batch struct {
conn *Conn
connPool *ConnPool
items []*batchItem
resultsRead int
pendingCommandComplete bool
@@ -188,8 +187,4 @@ func (b *Batch) die(err error) {
b.err = err
b.conn.die(err)
if b.conn != nil && b.connPool != nil {
b.connPool.Release(b.conn)
}
}