Small tweaks.

This commit is contained in:
Vladimir Mihailenco 2013-09-18 13:01:24 +03:00
parent 301d2f1353
commit 7ae857cb58
1 changed files with 1 additions and 3 deletions

View File

@ -62,8 +62,6 @@ type connPool struct {
cond *sync.Cond
conns *list.List
readTimeout, writeTimeout time.Duration
size, maxSize int
idleTimeout time.Duration
}
@ -118,7 +116,7 @@ func (p *connPool) Get() (*conn, bool, error) {
func (p *connPool) Put(cn *conn) error {
if cn.Rd.Buffered() != 0 {
panic("pool: put connection with buffered data")
panic("pool: attempt to put connection with buffered data")
}
p.cond.L.Lock()