Skip to content

Commit a15a89e

Browse files
committed
chore: fix build
1 parent 0aa9453 commit a15a89e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/pool/pool.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ func (p *ConnPool) reapStaleConn() *Conn {
542542

543543
func (p *ConnPool) isStaleConn(cn *Conn) bool {
544544
if p.opt.IdleTimeout == 0 && p.opt.MaxConnAge == 0 {
545-
return false
545+
return connCheck(cn.netConn) != nil
546546
}
547547

548548
now := time.Now()
@@ -553,5 +553,5 @@ func (p *ConnPool) isStaleConn(cn *Conn) bool {
553553
return true
554554
}
555555

556-
return false
556+
return connCheck(cn.netConn) != nil
557557
}

main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ func startRedis(port string, args ...string) (*redisProcess, error) {
324324

325325
p := &redisProcess{process, client}
326326
registerProcess(port, p)
327-
return p, err
327+
return p, nil
328328
}
329329

330330
func startSentinel(port, masterName, masterPort string) (*redisProcess, error) {

0 commit comments

Comments
 (0)