From 3c44aeecb8b8cb2d6b0f6c05cf036f2ee0330157 Mon Sep 17 00:00:00 2001 From: Ery Lee Date: Tue, 20 Jan 2015 15:48:26 +0800 Subject: [PATCH] topic type: dynamic or static --- CHANGELOG.md | 1 + apps/emqtt/include/emqtt_topic.hrl | 2 +- rel/files/app.config | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc000b780..aca2274ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ Change: fix emqtt_pubsub.erl to match '#', '+' Tests: emqtt_topic_tests.erl add more test cases + v0.3.0-alpha (2015-01-18) ------------------------ diff --git a/apps/emqtt/include/emqtt_topic.hrl b/apps/emqtt/include/emqtt_topic.hrl index a0e45d5c2..cb1b019b7 100644 --- a/apps/emqtt/include/emqtt_topic.hrl +++ b/apps/emqtt/include/emqtt_topic.hrl @@ -39,7 +39,7 @@ -record(topic_trie_node, { node_id :: binary() | atom(), edge_count = 0 :: non_neg_integer(), - topic :: binary() + topic :: binary(), type = dynamic :: dynamic | static }). diff --git a/rel/files/app.config b/rel/files/app.config index f6ae0f077..f1af6ad77 100644 --- a/rel/files/app.config +++ b/rel/files/app.config @@ -32,7 +32,9 @@ ]} ]}, {emqtt, [ - {auth, {anonymous, []}}, %internal, anonymous + %Authetication. Internal, Anonymous Default. + {auth, {anonymous, []}}, + {access, []}, {session, [ {expires, 1}, {max_queue, 1000},