✨ Support multiple notification push workers
This commit is contained in:
parent
b0735a7514
commit
d64743162f
@ -42,7 +42,9 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set up tasks queue consumers
|
// Set up tasks queue consumers
|
||||||
|
for idx := 0; idx < max(1, viper.GetInt("performance.notification_deliver.worker_count")); idx++ {
|
||||||
go services.ConsumeDeliveryTasks()
|
go services.ConsumeDeliveryTasks()
|
||||||
|
}
|
||||||
|
|
||||||
// Server
|
// Server
|
||||||
go server.NewServer().Listen()
|
go server.NewServer().Listen()
|
||||||
|
@ -16,6 +16,9 @@ firebase_credentials = ""
|
|||||||
|
|
||||||
use_registration_magic_token = false
|
use_registration_magic_token = false
|
||||||
|
|
||||||
|
[performance]
|
||||||
|
notification_deliver.worker_count = 4
|
||||||
|
|
||||||
[dealer]
|
[dealer]
|
||||||
addr = "127.0.0.1:8442"
|
addr = "127.0.0.1:8442"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user