Don't log that cruft
This commit is contained in:
		| @@ -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 { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user