(ctx context.Context)
| 311 | } |
| 312 | |
| 313 | func (c *Client) Ping(ctx context.Context) error { |
| 314 | cmd, errClient := c.commandClient() |
| 315 | if errClient != nil { |
| 316 | return errClient |
| 317 | } |
| 318 | return cmd.Ping(ctx).Err() |
| 319 | } |
| 320 | |
| 321 | func (c *Client) clusterDiscoveryEnabled() bool { |
| 322 | if c == nil { |
no test coverage detected