1
0
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:
Nedyalko Dyakov
2025-10-21 18:01:14 +03:00
parent 528f2e92a9
commit 1ee52937e2
9 changed files with 142 additions and 93 deletions

View File

@@ -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