From 01032aaab90934650f8704cd4f50bfd080970be1 Mon Sep 17 00:00:00 2001 From: Seednode Date: Mon, 1 Jan 2024 11:51:28 -0600 Subject: [PATCH] Remove max concurrency hard limit --- cmd/errors.go | 2 +- cmd/root.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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