zhangzengfei
2024-04-16 ca9e545d6fcc86e751e768f57d823704e9ad1340
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)
}