feat: change loadLimit validation to 50000 (#3322)
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
1ce0b3175c
commit
222a7879db
|
|
@ -49,5 +49,5 @@ type GetSeedPeerClustersQuery struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type SeedPeerClusterConfig 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"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// DefaultSeedPeerConcurrentUploadLimit is default number for seed peer concurrent upload limit.
|
// DefaultSeedPeerConcurrentUploadLimit is default number for seed peer concurrent upload limit.
|
||||||
DefaultSeedPeerConcurrentUploadLimit = 800
|
DefaultSeedPeerConcurrentUploadLimit = 2000
|
||||||
|
|
||||||
// DefaultPeerConcurrentUploadLimit is default number for peer concurrent upload limit.
|
// DefaultPeerConcurrentUploadLimit is default number for peer concurrent upload limit.
|
||||||
DefaultPeerConcurrentUploadLimit = 200
|
DefaultPeerConcurrentUploadLimit = 200
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue