Parcourir la source

fix(resource): fix undefined function

zhouzb il y a 4 ans
Parent
commit
ddfc010fdb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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()) ->