Use worker pool extensively

This commit is contained in:
Ben Sarmiento
2023-11-30 00:40:26 +01:00
parent 6e54fa760b
commit 9e3760f275
5 changed files with 97 additions and 64 deletions

View File

@@ -31,7 +31,7 @@ func MainApp(configPath string) {
rd := realdebrid.NewRealDebrid(apiClient, log.Named("realdebrid"))
p, err := ants.NewPool(config.GetNumOfWorkers())
p, err := ants.NewPool(config.GetNumOfWorkers() + 1)
if err != nil {
zurglog.Errorf("Failed to create worker pool: %v", err)
os.Exit(1)