Update last_update_key when new data received

pull/3330/head
Victor Baranov 4 years ago
parent 74512a094f
commit 3dacb0f94b
  1. 3
      apps/explorer/lib/explorer/counters/address_transactions_counter.ex

@ -73,10 +73,9 @@ defmodule Explorer.Counters.AddressTransactionsCounter do
end end
defp update_cache(address) do defp update_cache(address) do
put_into_cache(@last_update_key, current_time())
new_data = Chain.address_to_transaction_count(address) new_data = Chain.address_to_transaction_count(address)
address_hash_string = get_address_hash_string(address) address_hash_string = get_address_hash_string(address)
put_into_cache(@last_update_key, current_time())
put_into_cache("hash_#{address_hash_string}", new_data) put_into_cache("hash_#{address_hash_string}", new_data)
end end

Loading…
Cancel
Save