Преглед изворни кода

fix(resource): fix undefined function

zhouzb пре 4 година
родитељ
комит
ddfc010fdb
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      apps/emqx_resource/src/emqx_resource.erl

+ 1 - 1
apps/emqx_resource/src/emqx_resource.erl

@@ -172,7 +172,7 @@ create_dry_run(ResourceType, Config) ->
 -spec create_dry_run_local(resource_type(), resource_config()) ->
     ok | {error, Reason :: term()}.
 create_dry_run_local(ResourceType, Config) ->
-    InstId = emqx_plugin_libs_id:gen(16),
+    InstId = emqx_misc:gen_id(16),
     call_instance(InstId, {create_dry_run, InstId, ResourceType, Config}).
 
 -spec recreate(instance_id(), resource_type(), resource_config(), term()) ->