✨ Support multiple notification push workers
This commit is contained in:
@ -42,7 +42,9 @@ func main() {
|
||||
}
|
||||
|
||||
// Set up tasks queue consumers
|
||||
go services.ConsumeDeliveryTasks()
|
||||
for idx := 0; idx < max(1, viper.GetInt("performance.notification_deliver.worker_count")); idx++ {
|
||||
go services.ConsumeDeliveryTasks()
|
||||
}
|
||||
|
||||
// Server
|
||||
go server.NewServer().Listen()
|
||||
|
Reference in New Issue
Block a user