引入Vue

This commit is contained in:
奶爸
2019-12-10 15:33:05 +08:00
parent 8d791d91c1
commit 9f7f101e7f
4 changed files with 67 additions and 30 deletions

View File

@@ -123,11 +123,13 @@ func reportState() {
for {
if endReport.After(time.Now()) {
monitor.TrackNetworkSpeed()
_, err = client.ReportState(ctx, monitor.GetState(1).PB())
_, err = client.ReportState(ctx, monitor.GetState(2).PB())
if err != nil {
log.Printf("reportState error %v", err)
time.Sleep(delayWhenError)
}
} else {
time.Sleep(time.Second * 1)
}
}
}