From ca9e545d6fcc86e751e768f57d823704e9ad1340 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期二, 16 四月 2024 16:07:50 +0800
Subject: [PATCH] 修复更新重试次数

---
 config/config.go |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/config/config.go b/config/config.go
index 87dbe60..0aa97b4 100644
--- a/config/config.go
+++ b/config/config.go
@@ -27,6 +27,7 @@
 	SyncServer     string `mapstructure:"sync-server"`
 	ReportServer   string `mapstructure:"report-server"`
 	ReportInterval int    `mapstructure:"report-interval"`
+	RetryInterval  int    `mapstructure:"retry-interval"`
 }
 
 type rateLimitConfig struct {
@@ -73,5 +74,9 @@
 		ForwardConf.ReportInterval = 10
 	}
 
+	if ForwardConf.RetryInterval == 0 {
+		ForwardConf.RetryInterval = 5
+	}
+
 	logger.SetLogLevel(LogConf.Level)
 }

--
Gitblit v1.8.0