Remove rate limit config

This commit is contained in:
Ben Adrian Sarmiento
2024-06-16 10:00:49 +02:00
parent 42a08583ce
commit e5bb026f87
3 changed files with 5 additions and 18 deletions

View File

@@ -30,7 +30,6 @@ type ConfigInterface interface {
GetApiTimeoutSecs() int
GetDownloadTimeoutSecs() int
GetRetriesUntilFailed() int
GetRateLimitSleepSecs() int
GetRarAction() string
GetDownloadsEveryMins() int
GetDumpTorrentsEveryMins() int
@@ -55,8 +54,6 @@ type ZurgConfig struct {
Password string `yaml:"password" json:"password"`
PlayableExtensions []string `yaml:"addl_playable_extensions" json:"addl_playable_extensions"`
Port string `yaml:"port" json:"port"`
Proxy string `yaml:"proxy" json:"proxy"`
RateLimitSleepSecs int `yaml:"rate_limit_sleep_secs" json:"rate_limit_sleep_secs"`
RefreshEverySecs int `yaml:"check_for_changes_every_secs" json:"check_for_changes_every_secs"`
RepairEveryMins int `yaml:"repair_every_mins" json:"repair_every_mins"`
RetainFolderNameExtension bool `yaml:"retain_folder_name_extension" json:"retain_folder_name_extension"`
@@ -191,13 +188,6 @@ func (z *ZurgConfig) GetDownloadTimeoutSecs() int {
return z.DownloadTimeoutSecs
}
func (z *ZurgConfig) GetRateLimitSleepSecs() int {
if z.RateLimitSleepSecs == 0 {
return 4
}
return z.RateLimitSleepSecs
}
// GetRarAction returns the action to take when a rar'ed torrent is found
// none: do nothing (mark as unrepairable)
// extract: extract the rar'ed torrent