(count int64)
| 97 | } |
| 98 | |
| 99 | func (c *ClusterChecker) WithMaxFailureCount(count int64) *ClusterChecker { |
| 100 | c.options.maxFailureCount = count |
| 101 | if c.options.maxFailureCount < 1 { |
| 102 | c.options.maxFailureCount = 5 |
| 103 | } |
| 104 | return c |
| 105 | } |
| 106 | |
| 107 | func (c *ClusterChecker) probeNode(ctx context.Context, node store.Node) (int64, error) { |
| 108 | clusterInfo, err := node.GetClusterInfo(ctx) |