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

fix(clusterlink): ignore not_registered error

Serge Tupchii 1 год назад
Родитель
Сommit
44c37571cc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/emqx_cluster_link/src/emqx_cluster_link_config.erl

+ 1 - 1
apps/emqx_cluster_link/src/emqx_cluster_link_config.erl

@@ -164,7 +164,7 @@ toggle_hook_and_broker([_ | _] = _NewEnabledLinks, [] = _OldEnabledLinks) ->
     ok = emqx_cluster_link:register_external_broker(),
     ok = emqx_cluster_link:put_hook();
 toggle_hook_and_broker([] = _NewEnabledLinks, _OldLinks) ->
-    ok = emqx_cluster_link:unregister_external_broker(),
+    _ = emqx_cluster_link:unregister_external_broker(),
     ok = emqx_cluster_link:delete_hook();
 toggle_hook_and_broker(_, _) ->
     ok.