MCPcopy Create free account
hub / github.com/eth-easl/dirigent / SetupHeartbeatLoop

Method SetupHeartbeatLoop

internal/worker_node/worker_node.go:213–221  ·  view source on GitHub ↗
(cfg *config.WorkerNodeConfig)

Source from the content-addressed store, hash-verified

211}
212
213func (w *WorkerNode) SetupHeartbeatLoop(cfg *config.WorkerNodeConfig) {
214 for {
215 // Send
216 w.sendHeartbeatLoop(cfg)
217
218 // Wait
219 time.Sleep(utils.HeartbeatInterval)
220 }
221}
222
223func (w *WorkerNode) getWorkerStatistics() (*proto.NodeHeartbeatMessage, error) {
224 hardwareUsage := hardware.GetHardwareUsage()

Callers 1

mainFunction · 0.95

Calls 1

sendHeartbeatLoopMethod · 0.95

Tested by

no test coverage detected