zhangzengfei
2024-04-21 019134c072f263304e45dc3db092c1d7242cdb6b
config/config.go
@@ -28,6 +28,7 @@
   ReportServer   string `mapstructure:"report-server"`
   ReportInterval int    `mapstructure:"report-interval"`
   RetryInterval  int    `mapstructure:"retry-interval"`
   CutFaceImage   bool   `mapstructure:"cut-face-image"`
}
type rateLimitConfig struct {
@@ -48,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)