|
|
|
@ -115,9 +115,10 @@ defmodule Indexer.Supervisor do |
|
|
|
|
{CoinBalance.Supervisor, |
|
|
|
|
[[json_rpc_named_arguments: json_rpc_named_arguments, memory_monitor: memory_monitor]]}, |
|
|
|
|
{Token.Supervisor, [[json_rpc_named_arguments: json_rpc_named_arguments, memory_monitor: memory_monitor]]}, |
|
|
|
|
configure(TokenInstance.Supervisor, [ |
|
|
|
|
[json_rpc_named_arguments: json_rpc_named_arguments, memory_monitor: memory_monitor] |
|
|
|
|
]), |
|
|
|
|
{TokenInstance.Supervisor, |
|
|
|
|
[ |
|
|
|
|
[json_rpc_named_arguments: json_rpc_named_arguments, memory_monitor: memory_monitor] |
|
|
|
|
]}, |
|
|
|
|
{ContractCode.Supervisor, |
|
|
|
|
[[json_rpc_named_arguments: json_rpc_named_arguments, memory_monitor: memory_monitor]]}, |
|
|
|
|
{TokenBalance.Supervisor, |
|
|
|
@ -148,7 +149,7 @@ defmodule Indexer.Supervisor do |
|
|
|
|
) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
defp configure(process, opts \\ []) do |
|
|
|
|
defp configure(process, opts) do |
|
|
|
|
if Application.get_env(:indexer, process)[:enabled] do |
|
|
|
|
[{process, opts}] |
|
|
|
|
else |
|
|
|
|