mirror of
https://github.com/redis/go-redis.git
synced 2025-04-19 07:22:17 +03:00
Small tweaks.
This commit is contained in:
parent
301d2f1353
commit
7ae857cb58
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user