Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
blockscout/lib/explorer/workers/refresh_balance.ex

17 lines
322 B

defmodule Explorer.Workers.RefreshBalance do
@moduledoc """
Refreshes the Credit and Debit balance views.
"""
alias Explorer.Credit
alias Explorer.Debit
def perform do
Credit.refresh()
Debit.refresh()
end
def perform_later do
Exq.enqueue(Exq.Enqueuer, "default", __MODULE__, [])
end
end