MCPcopy
hub / github.com/aceld/zinx / start

Method start

znet/heartbeat.go:105–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103}
104
105func (h *HeartbeatChecker) start() {
106 ticker := time.NewTicker(h.interval)
107 for {
108 select {
109 case <-ticker.C:
110 h.check()
111 case <-h.quitChan:
112 ticker.Stop()
113 return
114 }
115 }
116}
117
118func (h *HeartbeatChecker) Start() {
119 go h.start()

Callers 1

StartMethod · 0.95

Calls 2

checkMethod · 0.95
StopMethod · 0.65

Tested by

no test coverage detected