mirror of
https://github.com/redis/go-redis.git
synced 2025-07-31 05:04:23 +03:00
chore: fix build
This commit is contained in:
@ -542,7 +542,7 @@ func (p *ConnPool) reapStaleConn() *Conn {
|
||||
|
||||
func (p *ConnPool) isStaleConn(cn *Conn) bool {
|
||||
if p.opt.IdleTimeout == 0 && p.opt.MaxConnAge == 0 {
|
||||
return false
|
||||
return connCheck(cn.netConn) != nil
|
||||
}
|
||||
|
||||
now := time.Now()
|
||||
@ -553,5 +553,5 @@ func (p *ConnPool) isStaleConn(cn *Conn) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
return connCheck(cn.netConn) != nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user