mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
🍻 报警通知上线
This commit is contained in:
1 parent
ad4fedaa9b
commit
2ae832f509
8 files changed
+330
-30
No files matched your search
+1
-1
@@ -173,7 +173,7 @@ func reportState() {
|
||||
for {
|
||||
if client != nil {
|
||||
monitor.TrackNetworkSpeed()
|
||||
_, err = client.ReportState(ctx, monitor.GetState(2).PB())
|
||||
_, err = client.ReportState(ctx, monitor.GetState(dao.ReportDelay).PB())
|
||||
if err != nil {
|
||||
log.Printf("reportState error %v", err)
|
||||
time.Sleep(delayWhenError)
|
||||
|
||||
Reference in new issue
Block a user