Use worker pool extensively
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user