Skip to content

Commit

Permalink
Many FCM pools support
Browse files Browse the repository at this point in the history
  • Loading branch information
kmakiela authored and Rafał Słota committed Sep 5, 2019
1 parent 709758a commit 689400f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/mongoose_push/service/fcm/pool/supervisor.ex
Expand Up @@ -28,13 +28,10 @@ defmodule MongoosePush.Service.FCM.Pool.Supervisor do
end

defp create_sparrow_config(pool_configs) do
# For now only 1 fcm pool may be configured
pool_config =
pool_configs
|> List.first()
|> convert_pool_to_sparrow()

[pool_config]
pool_configs
|> List.foldl([], fn config, acc ->
[convert_pool_to_sparrow(config) | acc]
end)
end

defp convert_pool_to_sparrow({_pool_name, pool_config}) do
Expand Down

0 comments on commit 689400f

Please sign in to comment.