Close closes the cluster client, releasing any open resources. It is rare to Close a ClusterClient, as the ClusterClient is meant to be long-lived and shared between many goroutines.
()
| 1223 | // It is rare to Close a ClusterClient, as the ClusterClient is meant |
| 1224 | // to be long-lived and shared between many goroutines. |
| 1225 | func (c *ClusterClient) Close() error { |
| 1226 | return c.nodes.Close() |
| 1227 | } |
| 1228 | |
| 1229 | func (c *ClusterClient) Process(ctx context.Context, cmd Cmder) error { |
| 1230 | err := c.processHook(ctx, cmd) |