1
0
mirror of https://github.com/redis/go-redis.git synced 2025-12-03 18:31:14 +03:00

fix(conn): comments

This commit is contained in:
Nedyalko Dyakov
2025-10-22 16:36:49 +03:00
parent dfda8eb64e
commit a659704bb7

View File

@@ -78,13 +78,15 @@ type Conn struct {
// background operations that may execute commands, like re-authentication.
used atomic.Bool
// Inited flag to mark connection as initialized, this is almost the same as usable
// inited flag to mark connection as initialized, this is almost the same as usable
// but it is used to make sure we don't initialize a network connection twice
// On handoff, the network connection is replaced, but the Conn struct is reused
// this flag will be set to false when the network connection is replaced and
// set to true after the new network connection is initialized
inited atomic.Bool
// Initializing flag to mark connection as initializing
// This is used to prevent concurrent initialization of the network connection
initializing atomic.Bool
pooled bool
pubsub bool