Additional configs

This commit is contained in:
Ben Sarmiento
2023-11-28 11:39:08 +01:00
parent 00c7e04795
commit a42a5eeb80
5 changed files with 30 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ func main() {
os.Exit(1)
}
apiClient := zurghttp.NewHTTPClient(config.GetToken(), 5, 15, config, log.Named("httpclient"))
apiClient := zurghttp.NewHTTPClient(config.GetToken(), config.GetRetriesUntilFailed(), config.GetRealDebridTimeout(), config, log.Named("httpclient"))
rd := realdebrid.NewRealDebrid(apiClient, log.Named("realdebrid"))
@@ -52,7 +52,7 @@ func main() {
torrentMgr := torrent.NewTorrentManager(config, rd, p, log.Named("manager"))
downloadClient := zurghttp.NewHTTPClient("", 5, 0, config, log.Named("dlclient"))
downloadClient := zurghttp.NewHTTPClient(config.GetToken(), config.GetRetriesUntilFailed(), 0, config, log.Named("dlclient"))
getfile := universal.NewGetFile(downloadClient)
mux := http.NewServeMux()