diff --git a/config/runtime.exs b/config/runtime.exs index 08ed99294..05fd79c7e 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -7,7 +7,11 @@ end config :logflare, Logflare.PubSub, [ - pool_size: System.get_env("LOGFLARE_PUBSUB_POOL_SIZE") + pool_size: + if(System.get_env("LOGFLARE_PUBSUB_POOL_SIZE") != nil, + do: String.to_integer(System.get_env("LOGFLARE_PUBSUB_POOL_SIZE")), + else: nil + ) ] |> filter_nil_kv_pairs.()