From dd80eac9c0c058725dde4517bda4e270da42a234 Mon Sep 17 00:00:00 2001 From: TzeYiing Date: Wed, 31 Jan 2024 09:03:04 +0800 Subject: [PATCH] fix: convert string value of LOGFLARE_PUBSUB_POOL_SIZE to integer --- config/runtime.exs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.()