瀏覽代碼

fix: install plugins timeout by deadlock

Zhongwen Deng 3 年之前
父節點
當前提交
bbf45e9d2a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      apps/emqx_plugins/src/emqx_plugins.erl

+ 2 - 1
apps/emqx_plugins/src/emqx_plugins.erl

@@ -648,7 +648,8 @@ put_config(Key, Value) when is_atom(Key) ->
     put_config([Key], Value);
 put_config(Path, Values) when is_list(Path) ->
     Opts = #{rawconf_with_defaults => true, override_to => cluster},
-    case emqx_conf:update([?CONF_ROOT | Path], bin_key(Values), Opts) of
+    %% Already in cluster_rpc, don't use emqx_conf:update, dead calls
+    case emqx:update_config([?CONF_ROOT | Path], bin_key(Values), Opts) of
         {ok, _} -> ok;
         Error -> Error
     end.