fix(clusterlink): ignore not_registered error

This commit is contained in:
Serge Tupchii 2024-06-12 15:33:35 +03:00
parent 00f912928f
commit 44c37571cc
1 changed files with 1 additions and 1 deletions

View File

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