Просмотр исходного кода

TODO: How to persist the configuration

Feng Lee 8 лет назад
Родитель
Сommit
f978bae86a
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      src/emqttd_config.erl

+ 8 - 1
src/emqttd_config.erl

@@ -15,6 +15,13 @@
 %%--------------------------------------------------------------------
 
 %% @doc Hot Configuration
+%%
+%% TODO: How to persist the configuration?
+%% 
+%% 1. Store in mnesia database?
+%% 2. Store in dets?
+%% 3. Store in data/app.config?
+%%
 
 -module(emqttd_config).
 
@@ -25,7 +32,7 @@
 %% @doc Read the configuration of an application.
 -spec(read(atom()) -> {ok, list(env())} | {error, term()}).
 read(_App) ->
-    %% TODO
+    %% TODO: 
     %% 1. Read the app.conf from etc folder
     %% 2. Cuttlefish to read the conf
     %% 3. Return the terms and schema