From d0be04638b689a00f156820e127c51ff60e7e34e Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Wed, 11 Sep 2019 12:06:01 +0300 Subject: [PATCH] do not stich json rpc config into module --- apps/explorer/lib/explorer/chain/cache/net_version.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/explorer/lib/explorer/chain/cache/net_version.ex b/apps/explorer/lib/explorer/chain/cache/net_version.ex index 4a5c0cd144..43811a076b 100644 --- a/apps/explorer/lib/explorer/chain/cache/net_version.ex +++ b/apps/explorer/lib/explorer/chain/cache/net_version.ex @@ -3,8 +3,6 @@ defmodule Explorer.Chain.Cache.NetVersion do Caches chain version. """ - @json_rpc_named_arguments Application.get_env(:explorer, :json_rpc_named_arguments) - require Logger use Explorer.Chain.MapCache, @@ -12,7 +10,7 @@ defmodule Explorer.Chain.Cache.NetVersion do key: :version defp handle_fallback(:version) do - case EthereumJSONRPC.fetch_net_version(@json_rpc_named_arguments) do + case EthereumJSONRPC.fetch_net_version(Application.get_env(:explorer, :json_rpc_named_arguments)) do {:ok, value} -> {:update, value}