Task.start_link instead of Task.async

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

@ -49,7 +49,7 @@ defmodule Explorer.Counters.AddressTransactionsCounter do
def fetch(address) do def fetch(address) do
if cache_expired?() do if cache_expired?() do
Task.async(fn -> Task.start_link(fn ->
update_cache(address) update_cache(address)
end) end)
end end

Loading…
Cancel
Save