Skip to content

Commit 3da966a

Browse files
razitzRazfilipecosta90
authored
Tune idle connection check frequency (#25)
Co-authored-by: Raz <razitz@github.com> Co-authored-by: filipe oliveira <filipecosta.90@gmail.com>
1 parent 28994cb commit 3da966a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func dialFuncWrapper(host string, authPass *string) func() (redis.Conn, error) {
9898
}
9999

100100
func testOnBorrow(c redis.Conn, t time.Time) (err error) {
101-
if time.Since(t) > time.Millisecond {
101+
if time.Since(t) > time.Minute {
102102
_, err = c.Do("PING")
103103
}
104104
return err

0 commit comments

Comments
 (0)