Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
moving metrics server to the restart supervisor
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgrunewald committed May 11, 2022
1 parent 4d9df2d commit d94be9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/miner_critical_sup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ init(_Opts) ->
end,


ChildSpecs0 = [
?SUP(blockchain_sup, [BlockchainOpts]),
?WORKER(miner_metrics_server, [])
] ++ ConsensusMgr,
ChildSpecs0 = [?SUP(blockchain_sup, [BlockchainOpts])] ++ ConsensusMgr,
GatewayAndMux = case application:get_env(miner, gateway_and_mux_enable) of
{ok, true} -> true;
_ -> false
Expand Down
3 changes: 2 additions & 1 deletion src/miner_restart_sup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ init(_Opts) ->
?WORKER(elli, [[{callback, miner_jsonrpc_handler},
{ip, JsonRpcIp},
{port, JsonRpcPort}]]),
?WORKER(miner_poc_denylist, [])
?WORKER(miner_poc_denylist, []),
?WORKER(miner_metrics_server, [])
] ++
POCServers ++
ValServers ++
Expand Down

0 comments on commit d94be9d

Please sign in to comment.