stopHealthCheckLocked stops the health check while holding the lock.
()
| 228 | |
| 229 | // stopHealthCheckLocked stops the health check while holding the lock. |
| 230 | func (cc *ClusterClient) stopHealthCheckLocked() { |
| 231 | if cc.healthStop != nil { |
| 232 | close(cc.healthStop) |
| 233 | cc.healthStop = nil |
| 234 | } |
| 235 | if cc.healthTicker != nil { |
| 236 | cc.healthTicker.Stop() |
| 237 | cc.healthTicker = nil |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | // healthCheckLoop runs the periodic health check in a goroutine. |
| 242 | func (cc *ClusterClient) healthCheckLoop() { |
no test coverage detected