remove check for file_extensions configuration. show progress indication after 5 seconds.

This commit is contained in:
Arik Jones
2024-10-12 15:10:37 -05:00
parent da92da21dc
commit 6870258944
3 changed files with 72 additions and 6 deletions

View File

@@ -87,10 +87,6 @@ func Load(configPath string) (*Config, error) {
}
func (c *Config) Validate() error {
if len(c.FileExtensions) == 0 {
return fmt.Errorf("at least one file extension must be specified")
}
if c.RequestsPerSecond != nil && *c.RequestsPerSecond <= 0 {
return fmt.Errorf("requests_per_second must be positive")
}