mirror of https://github.com/v2ray/v2ray-core
parent
0e940fb1fa
commit
2eb313d0c2
@ -0,0 +1,15 @@
|
|||||||
|
package receiver
|
||||||
|
|
||||||
|
func (v *AllocationStrategy) GetConcurrencyValue() uint32 {
|
||||||
|
if v == nil || v.Concurrency == nil {
|
||||||
|
return 3
|
||||||
|
}
|
||||||
|
return v.Concurrency.Value
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v *AllocationStrategy) GetRefreshValue() uint32 {
|
||||||
|
if v == nil || v.Refresh == nil {
|
||||||
|
return 5
|
||||||
|
}
|
||||||
|
return v.Refresh.Value
|
||||||
|
}
|
Loading…
Reference in new issue