From 7ae857cb58f7303d1067f3f1067faa69aadb4b1c Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Wed, 18 Sep 2013 13:01:24 +0300 Subject: [PATCH] Small tweaks. --- v2/pool.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/v2/pool.go b/v2/pool.go index 4be1f1a..4fb83a7 100644 --- a/v2/pool.go +++ b/v2/pool.go @@ -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()