fetch transaction period from env variables

pull/1634/head
Ayrat Badykov 6 years ago
parent ab75da62df
commit a6c4dce440
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 2
      apps/explorer/lib/explorer/chain/transaction_count_cache.ex

@ -24,7 +24,7 @@ defmodule Explorer.Chain.TransactionCountCache do
end end
def init(params) do def init(params) do
cache_period = params[:cache_period] || @cache_period cache_period = System.get_env("TRANSACTION_COUNT_CACHE_PERIOD") || params[:cache_period] || @cache_period
current_value = params[:default_value] || @default_value current_value = params[:default_value] || @default_value
name = params[:name] name = params[:name]

Loading…
Cancel
Save