chore: fix build

This commit is contained in:
Vladimir Mihailenco 2022-06-04 14:52:46 +03:00
parent 0aa94538ee
commit a15a89ea58
2 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -324,7 +324,7 @@ func startRedis(port string, args ...string) (*redisProcess, error) {
p := &redisProcess{process, client}
registerProcess(port, p)
return p, err
return p, nil
}
func startSentinel(port, masterName, masterPort string) (*redisProcess, error) {