From dfa6761e49200f874dabeffd95c03de7a608f212 Mon Sep 17 00:00:00 2001 From: k32 <10274441+k32@users.noreply.github.com> Date: Thu, 12 Aug 2021 19:58:52 +0200 Subject: [PATCH] fix(rlog): Ensure the correct order of table initalization --- apps/emqx_authn/src/emqx_authn_app.erl | 2 +- apps/emqx_gateway/src/emqx_gateway.app.src | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/emqx_authn/src/emqx_authn_app.erl b/apps/emqx_authn/src/emqx_authn_app.erl index 52e59b2a6..bd9ec9cfe 100644 --- a/apps/emqx_authn/src/emqx_authn_app.erl +++ b/apps/emqx_authn/src/emqx_authn_app.erl @@ -27,8 +27,8 @@ ]). start(_StartType, _StartArgs) -> - {ok, Sup} = emqx_authn_sup:start_link(), ok = ekka_rlog:wait_for_shards([?AUTH_SHARD], infinity), + {ok, Sup} = emqx_authn_sup:start_link(), initialize(), {ok, Sup}. diff --git a/apps/emqx_gateway/src/emqx_gateway.app.src b/apps/emqx_gateway/src/emqx_gateway.app.src index 2fc329711..e25b767cc 100644 --- a/apps/emqx_gateway/src/emqx_gateway.app.src +++ b/apps/emqx_gateway/src/emqx_gateway.app.src @@ -3,7 +3,7 @@ {vsn, "0.1.0"}, {registered, []}, {mod, {emqx_gateway_app, []}}, - {applications, [kernel, stdlib, grpc, lwm2m_coap, emqx]}, + {applications, [kernel, stdlib, grpc, lwm2m_coap, emqx, emqx_authn]}, {env, []}, {modules, []}, {licenses, ["Apache 2.0"]},