|
|
@ -29,8 +29,8 @@ defmodule Explorer.Chain.Cache.TransactionCount do |
|
|
|
defp handle_fallback(:async_task) do |
|
|
|
defp handle_fallback(:async_task) do |
|
|
|
# If this gets called it means an async task was requested, but none exists |
|
|
|
# If this gets called it means an async task was requested, but none exists |
|
|
|
# so a new one needs to be launched |
|
|
|
# so a new one needs to be launched |
|
|
|
task = |
|
|
|
{:ok, task} = |
|
|
|
Task.async(fn -> |
|
|
|
Task.start(fn -> |
|
|
|
try do |
|
|
|
try do |
|
|
|
result = Repo.aggregate(Transaction, :count, :hash, timeout: :infinity) |
|
|
|
result = Repo.aggregate(Transaction, :count, :hash, timeout: :infinity) |
|
|
|
|
|
|
|
|
|
|
|