From 4eefd4215e785f59ab7dec7c7d5fe4157e1c776f Mon Sep 17 00:00:00 2001 From: Abhinand KR <43419808+abhinandkakkadi@users.noreply.github.com> Date: Sun, 27 Oct 2024 17:25:48 +0530 Subject: [PATCH] Remove redundant campaign manager config validations (#2095) --- cmd/init.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cmd/init.go b/cmd/init.go index 9dc0c766..c593a2ae 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -485,13 +485,6 @@ func initCampaignManager(q *models.Queries, cs *constants, app *App) *manager.Ma return app.sendNotification(cs.NotifyEmails, subject, notifTplCampaign, data) } - if ko.Int("app.concurrency") < 1 { - lo.Fatal("app.concurrency should be at least 1") - } - if ko.Int("app.message_rate") < 1 { - lo.Fatal("app.message_rate should be at least 1") - } - if ko.Bool("passive") { lo.Println("running in passive mode. won't process campaigns.") }