We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2965e3d commit 59da35bCopy full SHA for 59da35b
internal/pool/pool.go
@@ -800,8 +800,7 @@ func (p *ConnPool) removeConn(cn *Conn) {
800
p.poolSize.Add(-1)
801
// this can be idle conn
802
for idx, ic := range p.idleConns {
803
- if ic.GetID() == cid {
804
- internal.Logger.Printf(context.Background(), "redis: connection pool: removing idle conn[%d]", cid)
+ if ic == cn {
805
p.idleConns = append(p.idleConns[:idx], p.idleConns[idx+1:]...)
806
p.idleConnsLen.Add(-1)
807
break
0 commit comments