MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / NewNodeStatusExecutor

Function NewNodeStatusExecutor

internal/nodes/node_status_executor.go:46–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46func NewNodeStatusExecutor() *NodeStatusExecutor {
47 return &NodeStatusExecutor{
48 ticker: time.NewTicker(30 * time.Second),
49 apiCallStat: rpc.NewCallStat(10),
50
51 lastUDPInDatagrams: -1,
52 lastUDPOutDatagrams: -1,
53 }
54}
55
56func (this *NodeStatusExecutor) Listen() {
57 this.isFirstTime = true

Callers 1

StartMethod · 0.85

Calls 1

NewCallStatFunction · 0.92

Tested by

no test coverage detected