|
|
@ -26,7 +26,11 @@ defmodule Explorer.Application do |
|
|
|
defp children(_) do |
|
|
|
defp children(_) do |
|
|
|
import Supervisor.Spec |
|
|
|
import Supervisor.Spec |
|
|
|
exq_options = [] |> Keyword.put(:mode, :enqueuer) |
|
|
|
exq_options = [] |> Keyword.put(:mode, :enqueuer) |
|
|
|
[supervisor(Exq, [exq_options]) | children()] |
|
|
|
[ |
|
|
|
|
|
|
|
supervisor(Exq, [exq_options]), |
|
|
|
|
|
|
|
worker(Explorer.Servers.ChainStatistics, []) |
|
|
|
|
|
|
|
| children() |
|
|
|
|
|
|
|
] |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
defp children do |
|
|
|
defp children do |
|
|
@ -34,7 +38,6 @@ defmodule Explorer.Application do |
|
|
|
[ |
|
|
|
[ |
|
|
|
supervisor(Explorer.Repo, []), |
|
|
|
supervisor(Explorer.Repo, []), |
|
|
|
supervisor(ExplorerWeb.Endpoint, []), |
|
|
|
supervisor(ExplorerWeb.Endpoint, []), |
|
|
|
worker(Explorer.Servers.ChainStatistics, []) |
|
|
|
|
|
|
|
] |
|
|
|
] |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|