MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / stopHealthCheckLocked

Method stopHealthCheckLocked

pkg/api/cluster_client.go:230–239  ·  view source on GitHub ↗

stopHealthCheckLocked stops the health check while holding the lock.

()

Source from the content-addressed store, hash-verified

228
229// stopHealthCheckLocked stops the health check while holding the lock.
230func (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.
242func (cc *ClusterClient) healthCheckLoop() {

Callers 2

StartHealthCheckMethod · 0.95
StopHealthCheckMethod · 0.95

Calls 1

StopMethod · 0.45

Tested by

no test coverage detected