Remove redundant campaign manager config validations (#2095)

This commit is contained in:
Abhinand KR 2024-10-27 17:25:48 +05:30 committed by GitHub
parent 9bad699a5c
commit 4eefd4215e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.")
}