mirror of
https://github.com/redis/go-redis.git
synced 2025-04-17 20:17:02 +03:00
* fix: badConn check(#2053) * fix: internalpool test * fix: sentinel test * fix: conncheck ut * fix: remove maxBadConnRetries * fix: add connCheck.deadline check Signed-off-by: monkey92t <golang@88.com>
14 lines
165 B
Go
14 lines
165 B
Go
package pool
|
|
|
|
import (
|
|
"net"
|
|
"time"
|
|
)
|
|
|
|
func (cn *Conn) SetCreatedAt(tm time.Time) {
|
|
cn.createdAt = tm
|
|
}
|
|
|
|
func (cn *Conn) NetConn() net.Conn {
|
|
return cn.netConn
|
|
} |