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