Просмотр исходного кода

fix(rlog): Ensure the correct order of table initalization

k32 4 лет назад
Родитель
Сommit
dfa6761e49
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      apps/emqx_authn/src/emqx_authn_app.erl
  2. 1 1
      apps/emqx_gateway/src/emqx_gateway.app.src

+ 1 - 1
apps/emqx_authn/src/emqx_authn_app.erl

@@ -27,8 +27,8 @@
         ]).
         ]).
 
 
 start(_StartType, _StartArgs) ->
 start(_StartType, _StartArgs) ->
-    {ok, Sup} = emqx_authn_sup:start_link(),
     ok = ekka_rlog:wait_for_shards([?AUTH_SHARD], infinity),
     ok = ekka_rlog:wait_for_shards([?AUTH_SHARD], infinity),
+    {ok, Sup} = emqx_authn_sup:start_link(),
     initialize(),
     initialize(),
     {ok, Sup}.
     {ok, Sup}.
 
 

+ 1 - 1
apps/emqx_gateway/src/emqx_gateway.app.src

@@ -3,7 +3,7 @@
   {vsn, "0.1.0"},
   {vsn, "0.1.0"},
   {registered, []},
   {registered, []},
   {mod, {emqx_gateway_app, []}},
   {mod, {emqx_gateway_app, []}},
-  {applications, [kernel, stdlib, grpc, lwm2m_coap, emqx]},
+  {applications, [kernel, stdlib, grpc, lwm2m_coap, emqx, emqx_authn]},
   {env, []},
   {env, []},
   {modules, []},
   {modules, []},
   {licenses, ["Apache 2.0"]},
   {licenses, ["Apache 2.0"]},