1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-31 05:04:23 +03:00

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>
This commit is contained in:
monkey92t
2021-08-19 16:56:23 +08:00
committed by GitHub
parent bc9d5c8d3a
commit afafeda8a3
4 changed files with 71 additions and 9 deletions

View File

@ -1,6 +1,8 @@
package pool
import "time"
import (
"time"
)
func (cn *Conn) SetCreatedAt(tm time.Time) {
cn.createdAt = tm