MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / telemetryLoop

Function telemetryLoop

cmd/server/main-server.go:121–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119}
120
121func telemetryLoop() {
122 defer func() {
123 panichandler.PanicHandler("telemetryLoop", recover())
124 }()
125 var nextSend int64
126 time.Sleep(InitialTelemetryWait)
127 for {
128 if time.Now().Unix() > nextSend {
129 nextSend = time.Now().Add(TelemetryInterval).Unix()
130 sendTelemetryWrapper()
131 }
132 time.Sleep(TelemetryTick)
133 }
134}
135
136func diagnosticLoop() {
137 defer func() {

Callers 1

mainFunction · 0.85

Calls 2

PanicHandlerFunction · 0.92
sendTelemetryWrapperFunction · 0.85

Tested by

no test coverage detected