Refactor workers
This commit is contained in:
@@ -45,6 +45,7 @@ func MainApp(configPath string) {
|
||||
|
||||
premium.MonitorPremiumStatus(rd, zurglog)
|
||||
|
||||
// extra 1 worker for the refresh job
|
||||
workerPool, err := ants.NewPool(config.GetNumOfWorkers() + 1)
|
||||
if err != nil {
|
||||
zurglog.Errorf("Failed to create worker pool: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user