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) }