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()