From 0b20ad5afbbdb2e91d1985021f1f8a45d838b134 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期日, 21 四月 2024 23:57:21 +0800
Subject: [PATCH] 修改字段名,方便检查代码

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

diff --git a/config/config.go b/config/config.go
index 87dbe60..97fdb61 100644
--- a/config/config.go
+++ b/config/config.go
@@ -27,6 +27,8 @@
 	SyncServer     string `mapstructure:"sync-server"`
 	ReportServer   string `mapstructure:"report-server"`
 	ReportInterval int    `mapstructure:"report-interval"`
+	RetryInterval  int    `mapstructure:"retry-interval"`
+	CutFaceImage   bool   `mapstructure:"cut-face-image"`
 }
 
 type rateLimitConfig struct {
@@ -47,6 +49,7 @@
 	v.SetConfigType("yaml")
 	v.SetConfigName("gat1400")
 	v.AddConfigPath("./config/")
+	v.AddConfigPath("../config/")
 	err = v.ReadInConfig()
 	if err != nil {
 		fmt.Println("error on parsing configuration file", err)
@@ -73,5 +76,9 @@
 		ForwardConf.ReportInterval = 10
 	}
 
+	if ForwardConf.RetryInterval == 0 {
+		ForwardConf.RetryInterval = 5
+	}
+
 	logger.SetLogLevel(LogConf.Level)
 }

--
Gitblit v1.8.0