()
| 272 | } |
| 273 | |
| 274 | func updateTelemetryCountsLoop() { |
| 275 | defer func() { |
| 276 | panichandler.PanicHandler("updateTelemetryCountsLoop", recover()) |
| 277 | }() |
| 278 | var nextSend int64 |
| 279 | var lastCounts telemetrydata.TEventProps |
| 280 | time.Sleep(TelemetryInitialCountsWait) |
| 281 | for { |
| 282 | if time.Now().Unix() > nextSend { |
| 283 | nextSend = time.Now().Add(TelemetryCountsInterval).Unix() |
| 284 | lastCounts = updateTelemetryCounts(lastCounts) |
| 285 | } |
| 286 | time.Sleep(TelemetryTick) |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | func beforeSendActivityUpdate(ctx context.Context) { |
| 291 | activity := wshrpc.ActivityUpdate{} |
no test coverage detected