diff --git a/cmd/errors.go b/cmd/errors.go index 807ae8d..0e240bf 100644 --- a/cmd/errors.go +++ b/cmd/errors.go @@ -17,7 +17,7 @@ import ( var ( ErrInvalidAdminPrefix = errors.New("admin path must match the pattern " + AllowedCharacters) - ErrInvalidConcurrency = errors.New("concurrency limit must be between 1 and 8192 inclusive") + ErrInvalidConcurrency = errors.New("concurrency limit must be a positive integer") ErrInvalidFileCountRange = errors.New("maximum file count limit must be greater than or equal to minimum file count limit") ErrInvalidFileCountValue = errors.New("file count limits must be non-negative integers no greater than 2147483647") ErrInvalidIgnoreFile = errors.New("ignore filename must match the pattern " + AllowedCharacters) diff --git a/cmd/root.go b/cmd/root.go index b48771b..fa87f7b 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -14,7 +14,7 @@ import ( const ( AllowedCharacters string = `^[A-z0-9.\-_]+$` - ReleaseVersion string = "3.6.0" + ReleaseVersion string = "3.6.1" ) var ( @@ -77,7 +77,7 @@ var ( return ErrInvalidFileCountRange case Port < 1 || Port > 65535: return ErrInvalidPort - case Concurrency < 1 || Concurrency > 8192: + case Concurrency < 1: return ErrInvalidConcurrency case Ignore && !regexp.MustCompile(AllowedCharacters).MatchString(IgnoreFile): return ErrInvalidIgnoreFile