From 2665cb62bbe60691d4409dbac8edab3469bd53e6 Mon Sep 17 00:00:00 2001 From: dinama Date: Mon, 29 Mar 2021 18:14:55 +0300 Subject: [PATCH] ED-96: enable to ignore wapi init (#380) --- apps/wapi/src/wapi_sup.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/wapi/src/wapi_sup.erl b/apps/wapi/src/wapi_sup.erl index 93c5643..1be87ca 100644 --- a/apps/wapi/src/wapi_sup.erl +++ b/apps/wapi/src/wapi_sup.erl @@ -25,13 +25,13 @@ start_link() -> %% -spec init - (undefined) -> ignore; + (undefined) -> {ok, {supervisor:sup_flags(), []}}; ([]) -> {ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}. init(undefined) -> % TODO #ED-96 на период разделения отсутствие настройки wapi - % считаем признаком запуска только fistful-server - _ = logger:warning("wapi is not configured - launch will be ignored"), - ignore; + _ = logger:warning("wapi is not configured - init will be ignored"), + {ok, {{one_for_all, 0, 1}, []}}; init([]) -> LechiffreOpts = genlib_app:env(wapi, lechiffre_opts), LechiffreSpec = lechiffre:child_spec(lechiffre, LechiffreOpts),