mirror of
https://github.com/redis/go-redis.git
synced 2025-10-24 19:32:57 +03:00
address pr comments
This commit is contained in:
2
redis.go
2
redis.go
@@ -513,7 +513,7 @@ func (c *baseClient) initConn(ctx context.Context, cn *pool.Conn) error {
|
||||
// mark the connection as usable and inited
|
||||
// once returned to the pool as idle, this connection can be used by other clients
|
||||
cn.SetUsable(true)
|
||||
cn.Used.Store(false)
|
||||
cn.SetUsed(false)
|
||||
cn.Inited.Store(true)
|
||||
|
||||
// Set the connection initialization function for potential reconnections
|
||||
|
||||
Reference in New Issue
Block a user