2
0

Access underlying net.Conn via method

Also remove some dead code.
This commit is contained in:
Jack Christensen
2018-12-31 18:00:08 -06:00
parent af2fc36c27
commit 1ff8024df9
7 changed files with 51 additions and 83 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ func (b *Batch) Send(ctx context.Context, txOptions *TxOptions) error {
b.conn.pendingReadyForQueryCount++
}
n, err := b.conn.pgConn.NetConn.Write(buf)
n, err := b.conn.pgConn.Conn().Write(buf)
if err != nil {
if fatalWriteErr(n, err) {
b.conn.die(err)