Single worker pool, client adjustments
This commit is contained in:
@@ -20,8 +20,6 @@ type ConfigInterface interface {
|
||||
GetRandomPreferredHost() string
|
||||
ShouldServeFromRclone() bool
|
||||
ShouldForceIPv6() bool
|
||||
GetUnrestrictWorkers() int
|
||||
GetReleaseUnrestrictAfterMs() int
|
||||
GetRateLimitSleepSeconds() int
|
||||
GetRealDebridTimeout() int
|
||||
GetRetriesUntilFailed() int
|
||||
@@ -33,8 +31,6 @@ type ZurgConfig struct {
|
||||
Host string `yaml:"host"`
|
||||
Port string `yaml:"port"`
|
||||
NumOfWorkers int `yaml:"concurrent_workers"`
|
||||
UnrestrictWorkers int `yaml:"unrestrict_workers"`
|
||||
ReleaseUnrestrictAfterMs int `yaml:"release_unrestrict_after_ms"`
|
||||
RateLimitSleepSeconds int `yaml:"rate_limit_sleep_secs"`
|
||||
RefreshEverySeconds int `yaml:"check_for_changes_every_secs"`
|
||||
CanRepair bool `yaml:"enable_repair"`
|
||||
@@ -128,20 +124,6 @@ func (z *ZurgConfig) ShouldForceIPv6() bool {
|
||||
return z.ForceIPv6
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) GetUnrestrictWorkers() int {
|
||||
if z.UnrestrictWorkers == 0 {
|
||||
return 20
|
||||
}
|
||||
return z.UnrestrictWorkers
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) GetReleaseUnrestrictAfterMs() int {
|
||||
if z.ReleaseUnrestrictAfterMs == 0 {
|
||||
return 100
|
||||
}
|
||||
return z.ReleaseUnrestrictAfterMs
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) GetRateLimitSleepSeconds() int {
|
||||
if z.RateLimitSleepSeconds == 0 {
|
||||
return 4
|
||||
|
||||
Reference in New Issue
Block a user