Remove unused block import stages (#10875)
parent
2c17f34409
commit
e22b45f32e
@ -1,30 +0,0 @@ |
||||
defmodule Explorer.Chain.Import.Stage.AddressReferencing do |
||||
@moduledoc """ |
||||
Imports any tables that reference `t:Explorer.Chain.Address.t/0` and that were imported by |
||||
`Explorer.Chain.Import.Stage.Addresses`. |
||||
""" |
||||
|
||||
alias Explorer.Chain.Import.{Runner, Stage} |
||||
|
||||
@behaviour Stage |
||||
|
||||
@impl Stage |
||||
def runners, |
||||
do: [ |
||||
Runner.Address.CoinBalances, |
||||
Runner.Blocks, |
||||
Runner.Address.CoinBalancesDaily |
||||
] |
||||
|
||||
@impl Stage |
||||
def all_runners, |
||||
do: runners() |
||||
|
||||
@impl Stage |
||||
def multis(runner_to_changes_list, options) do |
||||
{final_multi, final_remaining_runner_to_changes_list} = |
||||
Stage.single_multi(runners(), runner_to_changes_list, options) |
||||
|
||||
{[final_multi], final_remaining_runner_to_changes_list} |
||||
end |
||||
end |
@ -1,26 +0,0 @@ |
||||
defmodule Explorer.Chain.Import.Stage.Addresses do |
||||
@moduledoc """ |
||||
Imports addresses before anything else that references them because an unused address is still valid and recoverable |
||||
if the other stage(s) don't commit. |
||||
""" |
||||
|
||||
alias Explorer.Chain.Import.{Runner, Stage} |
||||
|
||||
@behaviour Stage |
||||
|
||||
@runner Runner.Addresses |
||||
|
||||
@impl Stage |
||||
def runners, do: [@runner] |
||||
|
||||
@impl Stage |
||||
def all_runners, |
||||
do: runners() |
||||
|
||||
@chunk_size 50 |
||||
|
||||
@impl Stage |
||||
def multis(runner_to_changes_list, options) do |
||||
Stage.chunk_every(runner_to_changes_list, @runner, @chunk_size, options) |
||||
end |
||||
end |
Loading…
Reference in new issue