Remove max concurrency hard limit
This commit is contained in:
parent
e032be0936
commit
01032aaab9
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue