Remove max concurrency hard limit

This commit is contained in:
Seednode 2024-01-01 11:51:28 -06:00
parent e032be0936
commit 01032aaab9
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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