|
|
@ -12,7 +12,6 @@ defmodule Explorer.Application do |
|
|
|
@impl Application |
|
|
|
@impl Application |
|
|
|
def start(_type, _args) do |
|
|
|
def start(_type, _args) do |
|
|
|
PrometheusLogger.setup() |
|
|
|
PrometheusLogger.setup() |
|
|
|
BlockNumberCache.setup() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:telemetry.attach( |
|
|
|
:telemetry.attach( |
|
|
|
"prometheus-ecto", |
|
|
|
"prometheus-ecto", |
|
|
@ -35,7 +34,11 @@ defmodule Explorer.Application do |
|
|
|
|
|
|
|
|
|
|
|
opts = [strategy: :one_for_one, name: Explorer.Supervisor] |
|
|
|
opts = [strategy: :one_for_one, name: Explorer.Supervisor] |
|
|
|
|
|
|
|
|
|
|
|
Supervisor.start_link(children, opts) |
|
|
|
res = Supervisor.start_link(children, opts) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BlockNumberCache.setup() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
res |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
defp configurable_children do |
|
|
|
defp configurable_children do |
|
|
|