feat: change loadLimit validation to 50000 (#3322)

Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
Gaius 2024-06-13 21:17:49 +08:00 committed by GitHub
parent 1ce0b3175c
commit 222a7879db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -49,5 +49,5 @@ type GetSeedPeerClustersQuery struct {
}
type SeedPeerClusterConfig struct {
LoadLimit uint32 `yaml:"loadLimit" mapstructure:"loadLimit" json:"load_limit" binding:"omitempty,gte=1,lte=5000"`
LoadLimit uint32 `yaml:"loadLimit" mapstructure:"loadLimit" json:"load_limit" binding:"omitempty,gte=1,lte=50000"`
}

View File

@ -25,7 +25,7 @@ import (
const (
// DefaultSeedPeerConcurrentUploadLimit is default number for seed peer concurrent upload limit.
DefaultSeedPeerConcurrentUploadLimit = 800
DefaultSeedPeerConcurrentUploadLimit = 2000
// DefaultPeerConcurrentUploadLimit is default number for peer concurrent upload limit.
DefaultPeerConcurrentUploadLimit = 200