forked from blockscout/blockscout
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix transactions deadlock (blockscout#11623)
- Loading branch information
1 parent
3ad7c80
commit c9c620e
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
defmodule Explorer.Chain.Import.Stage.Logs do | ||
@moduledoc """ | ||
Import logs. | ||
""" | ||
|
||
alias Explorer.Chain.Import.{Runner, Stage} | ||
|
||
@behaviour Stage | ||
|
||
@runners [ | ||
Runner.Logs | ||
] | ||
|
||
@impl Stage | ||
def runners, do: @runners | ||
|
||
@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 |