Skip to content

Commit

Permalink
fix: Fix addresses deadlock (blockscout#11616)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwerty5Uiop authored Jan 8, 2025
1 parent f71924f commit 80cbe9e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions apps/explorer/lib/explorer/chain/import.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ defmodule Explorer.Chain.Import do

@stages [
[
Import.Stage.Main,
Import.Stage.Tokens
Import.Stage.Blocks
],
[
Import.Stage.Main
],
[
Import.Stage.BlockTransactionReferencing,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
defmodule Explorer.Chain.Import.Stage.Tokens do
defmodule Explorer.Chain.Import.Stage.Blocks do
@moduledoc """
Imports tokens.
Import blocks.
"""

alias Explorer.Chain.Import.{Runner, Stage}

@behaviour Stage

@runners [
Runner.Tokens
Runner.Blocks
]

@impl Stage
Expand Down
4 changes: 2 additions & 2 deletions apps/explorer/lib/explorer/chain/import/stage/main.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmodule Explorer.Chain.Import.Stage.Main do
@moduledoc """
Imports main data (addresses, address_coin_balances, address_coin_balances_daily, tokens, blocks, transactions).
Imports main data (addresses, address_coin_balances, address_coin_balances_daily, tokens, transactions).
"""

alias Explorer.Chain.Import.{Runner, Stage}
Expand All @@ -10,7 +10,7 @@ defmodule Explorer.Chain.Import.Stage.Main do
@addresses_runner Runner.Addresses

@rest_runners [
Runner.Blocks,
Runner.Tokens,
Runner.Address.CoinBalances,
Runner.Address.CoinBalancesDaily,
Runner.Transactions
Expand Down

0 comments on commit 80cbe9e

Please sign in to comment.