Ver código fonte

fix(emqx_resource): merge conflict

Shawn 4 anos atrás
pai
commit
16c0a5b80a
1 arquivos alterados com 0 adições e 10 exclusões
  1. 0 10
      apps/emqx_resource/src/emqx_resource_instance.erl

+ 0 - 10
apps/emqx_resource/src/emqx_resource_instance.erl

@@ -100,16 +100,6 @@ save_config_to_disk(InstId, ResourceType, Config) ->
 emqx_data_dir() ->
     "data".
 
-save_config_to_disk(InstId, ResourceType, Config) ->
-    %% TODO: send an event to the config handler, and the hander (single process)
-    %% will dump configs for all instances (from an ETS table) to a file.
-    file:write_file(filename:join([emqx_data_dir(), binary_to_list(InstId) ++ ".conf"]),
-        jsx:encode(#{id => InstId, resource_type => ResourceType,
-                     config => emqx_resource:call_jsonify(ResourceType, Config)})).
-
-emqx_data_dir() ->
-    "data".
-
 %%------------------------------------------------------------------------------
 %% gen_server callbacks
 %%------------------------------------------------------------------------------