From f978bae86adbbe4993e16d7b4d8ec1182a571432 Mon Sep 17 00:00:00 2001 From: Feng Lee Date: Mon, 14 Aug 2017 09:32:39 +0800 Subject: [PATCH] TODO: How to persist the configuration --- src/emqttd_config.erl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/emqttd_config.erl b/src/emqttd_config.erl index 8ae8ab72d..06256bbfd 100644 --- a/src/emqttd_config.erl +++ b/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