We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dda1344 + c7ea52d commit c558557Copy full SHA for c558557
rediscluster/redisclusterutil/cluster.go
@@ -105,6 +105,7 @@ type InstanceInfo struct {
105
// More probably, redis instance with other UUID were started on the same port.
106
NoAddr bool
107
SlaveOf string
108
+ Connected bool
109
Slots [][2]uint16
110
Migrating []SlotMigration
111
}
@@ -312,6 +313,7 @@ func ParseClusterNodes(res interface{}) (InstanceInfos, error) {
312
313
314
node.NoAddr = strings.Contains(parts[2], "noaddr")
315
node.MySelf = strings.Contains(parts[2], "myself")
316
+ node.Connected = parts[7] == "connected"
317
318
for _, slot := range parts[8:] {
319
if slot[0] == '[' {
0 commit comments