thinking about timeout

This commit is contained in:
Ben Sarmiento
2024-01-27 23:53:22 +01:00
parent ce4b794098
commit 2502e5473f
3 changed files with 17 additions and 14 deletions

View File

@@ -72,7 +72,7 @@ func MainApp(configPath string) {
torrentMgr := torrent.NewTorrentManager(config, rd, workerPool, repairPool, log.Named("manager"))
downloadClient := http.NewHTTPClient(config.GetToken(), config.GetRetriesUntilFailed(), 0, true, config, log.Named("dlclient"))
downloader := universal.NewDownloader(downloadClient)
downloader := universal.NewDownloader(downloadClient, config.GetRealDebridTimeout())
router := chi.NewRouter()
handlers.AttachHandlers(router, downloader, torrentMgr, config, rd, log.Named("router"))