(ctx context.Context)
| 234 | } |
| 235 | |
| 236 | func (n *ClusterNode) GetClusterNodesString(ctx context.Context) (string, error) { |
| 237 | clusterNodesStr, err := n.GetClient().ClusterNodes(ctx).Result() |
| 238 | if err != nil { |
| 239 | return "", err |
| 240 | } |
| 241 | return strings.TrimRight(clusterNodesStr, "\n"), nil |
| 242 | } |
| 243 | |
| 244 | func (n *ClusterNode) SyncClusterInfo(ctx context.Context, cluster *Cluster) error { |
| 245 | clusterStr, err := cluster.ToSlotString() |