mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 08:40:20 +00:00
引入Vue
This commit is contained in:
1 parent
f408066509
commit
08eea4299f
4 files changed
+67
-30
No files matched your search
+3
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user