This website requires JavaScript.
Explore
Help
Sign In
mirror
/
redis
mirror of
https://github.com/go-redis/redis.git
Watch
1
Star
0
Fork
You've already forked redis
1
Code
Issues
Packages
Projects
Releases
Wiki
Activity
2b6611c4fd
redis
/
internal
/
pool
/
export_test.go
10 lines
100 B
Go
Raw
Normal View
History
Unescape
Escape
Fix MinIdleConns and MaxConnAge
2019-03-25 14:02:31 +03:00
package
pool
after the connection pool is closed, no new connections should be added (#1863) * after the connection pool is closed, no new connections should be added Signed-off-by: monkey92t <golang@88.com> * remove runGoroutine Signed-off-by: monkey92t <golang@88.com> * pool.popIdle add p.closed check Signed-off-by: monkey92t <golang@88.com> * upgrade golangci-lint v1.42.0 Signed-off-by: monkey92t <golang@88.com>
2021-08-19 11:56:23 +03:00
import
(
"time"
)
Fix MinIdleConns and MaxConnAge
2019-03-25 14:02:31 +03:00
func
(
cn
*
Conn
)
SetCreatedAt
(
tm
time
.
Time
)
{
cn
.
createdAt
=
tm
}