Skip to content

Commit

Permalink
fix: convert string value of LOGFLARE_PUBSUB_POOL_SIZE to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc committed Jan 31, 2024
1 parent bf8fea4 commit dd80eac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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.()

Expand Down

0 comments on commit dd80eac

Please sign in to comment.