Remove warning from config helper

pull/6922/head
Viktor Baranov 2 years ago
parent 65d7ad5b45
commit 99b6e5da3d
  1. 13
      config/config_helper.exs

@ -3,12 +3,11 @@ defmodule ConfigHelper do
basic_auth_user = System.get_env("ETHEREUM_JSONRPC_USER", "") basic_auth_user = System.get_env("ETHEREUM_JSONRPC_USER", "")
basic_auth_pass = System.get_env("ETHEREUM_JSONRPC_PASSWORD", nil) basic_auth_pass = System.get_env("ETHEREUM_JSONRPC_PASSWORD", nil)
hackney_opts = [pool: :ethereum_jsonrpc]
[pool: :ethereum_jsonrpc] |> (&if(System.get_env("ETHEREUM_JSONRPC_HTTP_INSECURE", "") == "true", do: [:insecure] ++ &1, else: &1)).()
|> (&if(System.get_env("ETHEREUM_JSONRPC_HTTP_INSECURE", "") == "true", do: [:insecure] ++ &1, else: &1)).() |> (&if(basic_auth_user != "" && !is_nil(basic_auth_pass),
|> (&if(basic_auth_user != "" && !is_nil(basic_auth_pass), do: [basic_auth: {basic_auth_user, basic_auth_pass}] ++ &1,
do: [basic_auth: {basic_auth_user, basic_auth_pass}] ++ &1, else: &1
else: &1 )).()
)).()
end end
end end

Loading…
Cancel
Save