Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Remove redundant campaign manager config validations (#2095)

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