Don't log that cruft
This commit is contained in:
parent
89401cbb95
commit
58ad01e3e1
@ -1,7 +1,6 @@
|
|||||||
package client
|
package client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -55,14 +54,11 @@ func (p *pool) getConn(addr string, tr transport.Transport, opts ...transport.Di
|
|||||||
// we got a good conn, lets unlock and return it
|
// we got a good conn, lets unlock and return it
|
||||||
p.Unlock()
|
p.Unlock()
|
||||||
|
|
||||||
fmt.Println("old conn")
|
|
||||||
return conn, nil
|
return conn, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
p.Unlock()
|
p.Unlock()
|
||||||
|
|
||||||
fmt.Println("new conn")
|
|
||||||
|
|
||||||
// create new conn
|
// create new conn
|
||||||
c, err := tr.Dial(addr, opts...)
|
c, err := tr.Dial(addr, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user