Refactor workers

This commit is contained in:
Ben Sarmiento
2024-01-27 13:17:45 +01:00
parent e01622064d
commit 05d2544fe8
6 changed files with 127 additions and 171 deletions

View File

@@ -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)