StopHealthCheck stops the periodic health checking.
()
| 221 | |
| 222 | // StopHealthCheck stops the periodic health checking. |
| 223 | func (cc *ClusterClient) StopHealthCheck() { |
| 224 | cc.mu.Lock() |
| 225 | defer cc.mu.Unlock() |
| 226 | cc.stopHealthCheckLocked() |
| 227 | } |
| 228 | |
| 229 | // stopHealthCheckLocked stops the health check while holding the lock. |
| 230 | func (cc *ClusterClient) stopHealthCheckLocked() { |
no test coverage detected