MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / Start

Method Start

internal/nodes/task_sync_api_nodes.go:43–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43func (this *SyncAPINodesTask) Start() {
44 this.ticker = time.NewTicker(5 * time.Minute)
45 if Tea.IsTesting() {
46 // 快速测试
47 this.ticker = time.NewTicker(1 * time.Minute)
48 }
49 for range this.ticker.C {
50 err := this.Loop()
51 if err != nil {
52 logs.Println("[TASK][SYNC_API_NODES_TASK]" + err.Error())
53 }
54 }
55}
56
57func (this *SyncAPINodesTask) Stop() {
58 if this.ticker != nil {

Callers

nothing calls this directly

Calls 2

LoopMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected