diff --git a/src/emqttd.erl b/src/emqttd.erl index eeb5bab4d..540a11fd1 100644 --- a/src/emqttd.erl +++ b/src/emqttd.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd). -author("Feng Lee "). diff --git a/src/emqttd_acl_internal.erl b/src/emqttd_acl_internal.erl index c2ce3184c..b6dc0b81b 100644 --- a/src/emqttd_acl_internal.erl +++ b/src/emqttd_acl_internal.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_acl_internal). -author("Feng Lee "). diff --git a/src/emqttd_alarm.erl b/src/emqttd_alarm.erl index fc3ce729e..4f176af8f 100644 --- a/src/emqttd_alarm.erl +++ b/src/emqttd_alarm.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_alarm). -author("Feng Lee "). diff --git a/src/emqttd_bridge.erl b/src/emqttd_bridge.erl index cb6349803..12126dcd6 100644 --- a/src/emqttd_bridge.erl +++ b/src/emqttd_bridge.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_bridge). -author("Feng Lee "). diff --git a/src/emqttd_bridge_sup.erl b/src/emqttd_bridge_sup.erl index c780a6f6b..35003f152 100644 --- a/src/emqttd_bridge_sup.erl +++ b/src/emqttd_bridge_sup.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_bridge_sup). -author("Feng Lee "). diff --git a/src/emqttd_cli.erl b/src/emqttd_cli.erl index 59441d516..340125c09 100644 --- a/src/emqttd_cli.erl +++ b/src/emqttd_cli.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_cli). -author("Feng Lee "). diff --git a/src/emqttd_ctl.erl b/src/emqttd_ctl.erl index 5d34bd449..bde8344b0 100644 --- a/src/emqttd_ctl.erl +++ b/src/emqttd_ctl.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_ctl). -author("Feng Lee "). diff --git a/src/emqttd_dist.erl b/src/emqttd_dist.erl index 25e977660..fc440bac9 100644 --- a/src/emqttd_dist.erl +++ b/src/emqttd_dist.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_dist). -import(lists, [concat/1]). diff --git a/src/emqttd_guid.erl b/src/emqttd_guid.erl index bf668a384..a97ba1f15 100644 --- a/src/emqttd_guid.erl +++ b/src/emqttd_guid.erl @@ -35,7 +35,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_guid). -author("Feng Lee "). diff --git a/src/emqttd_http.erl b/src/emqttd_http.erl index 48724e1e0..5164f8adf 100644 --- a/src/emqttd_http.erl +++ b/src/emqttd_http.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_http). -author("Feng Lee "). diff --git a/src/emqttd_keepalive.erl b/src/emqttd_keepalive.erl index 6b9042d13..bce8b6b6f 100644 --- a/src/emqttd_keepalive.erl +++ b/src/emqttd_keepalive.erl @@ -23,7 +23,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_keepalive). -author("Feng Lee "). diff --git a/src/emqttd_metrics.erl b/src/emqttd_metrics.erl index 29dd15a3d..5f36aa042 100644 --- a/src/emqttd_metrics.erl +++ b/src/emqttd_metrics.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_metrics). -author("Feng Lee "). diff --git a/src/emqttd_mnesia.erl b/src/emqttd_mnesia.erl index 3f94071ed..82fece19b 100644 --- a/src/emqttd_mnesia.erl +++ b/src/emqttd_mnesia.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_mnesia). -author("Feng Lee "). diff --git a/src/emqttd_mod_autosub.erl b/src/emqttd_mod_autosub.erl index a1c8d1649..00dc3dc0c 100644 --- a/src/emqttd_mod_autosub.erl +++ b/src/emqttd_mod_autosub.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_mod_autosub). -author("Feng Lee "). diff --git a/src/emqttd_mod_presence.erl b/src/emqttd_mod_presence.erl index da3a05c00..81f7348d4 100644 --- a/src/emqttd_mod_presence.erl +++ b/src/emqttd_mod_presence.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_mod_presence). -author("Feng Lee "). diff --git a/src/emqttd_mod_rewrite.erl b/src/emqttd_mod_rewrite.erl index 09357211c..5ddf2b2ee 100644 --- a/src/emqttd_mod_rewrite.erl +++ b/src/emqttd_mod_rewrite.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_mod_rewrite). -author("Feng Lee "). diff --git a/src/emqttd_mod_sup.erl b/src/emqttd_mod_sup.erl index a2b1a717f..8fa3ced59 100644 --- a/src/emqttd_mod_sup.erl +++ b/src/emqttd_mod_sup.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_mod_sup). -author("Feng Lee "). diff --git a/src/emqttd_mqueue.erl b/src/emqttd_mqueue.erl index 398db256a..59bb2883b 100644 --- a/src/emqttd_mqueue.erl +++ b/src/emqttd_mqueue.erl @@ -47,7 +47,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_mqueue). -author("Feng Lee "). diff --git a/src/emqttd_opts.erl b/src/emqttd_opts.erl index 938d002cc..dfd5b74b6 100644 --- a/src/emqttd_opts.erl +++ b/src/emqttd_opts.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_opts). -author("Feng Lee "). diff --git a/src/emqttd_packet.erl b/src/emqttd_packet.erl index 0bc5190a8..286289af3 100644 --- a/src/emqttd_packet.erl +++ b/src/emqttd_packet.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_packet). -author("Feng Lee "). diff --git a/src/emqttd_plugins.erl b/src/emqttd_plugins.erl index b02b1d427..4bd86592e 100644 --- a/src/emqttd_plugins.erl +++ b/src/emqttd_plugins.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_plugins). -author("Feng Lee "). diff --git a/src/emqttd_pooler_sup.erl b/src/emqttd_pooler_sup.erl index e503f7c1a..d5f3a0ee5 100644 --- a/src/emqttd_pooler_sup.erl +++ b/src/emqttd_pooler_sup.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_pooler_sup). -author("Feng Lee "). diff --git a/src/emqttd_pubsub_sup.erl b/src/emqttd_pubsub_sup.erl index e1c5095cf..a0293c226 100644 --- a/src/emqttd_pubsub_sup.erl +++ b/src/emqttd_pubsub_sup.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_pubsub_sup). -author("Feng Lee "). diff --git a/src/emqttd_retained.erl b/src/emqttd_retained.erl index 685006200..bf5ad51b0 100644 --- a/src/emqttd_retained.erl +++ b/src/emqttd_retained.erl @@ -21,11 +21,11 @@ %%%----------------------------------------------------------------------------- %%% @doc %%% MQTT retained message storage. +%%% +%%% TODO: should match topic tree %%% %%% @end %%%----------------------------------------------------------------------------- - -%% TODO: should match topic tree -module(emqttd_retained). -author("Feng Lee "). diff --git a/src/emqttd_serialiser.erl b/src/emqttd_serialiser.erl index 85d3239b1..471904bce 100644 --- a/src/emqttd_serialiser.erl +++ b/src/emqttd_serialiser.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_serialiser). -author("Feng Lee "). diff --git a/src/emqttd_sm_helper.erl b/src/emqttd_sm_helper.erl index 509419335..43a2da90b 100644 --- a/src/emqttd_sm_helper.erl +++ b/src/emqttd_sm_helper.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_sm_helper). -author("Feng Lee "). diff --git a/src/emqttd_sm_sup.erl b/src/emqttd_sm_sup.erl index 2c49ef01e..d75d0f3bf 100644 --- a/src/emqttd_sm_sup.erl +++ b/src/emqttd_sm_sup.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_sm_sup). -author("Feng Lee "). diff --git a/src/emqttd_stats.erl b/src/emqttd_stats.erl index c7c7eaa5c..6f382259b 100644 --- a/src/emqttd_stats.erl +++ b/src/emqttd_stats.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_stats). -author("Feng Lee "). diff --git a/src/emqttd_sup.erl b/src/emqttd_sup.erl index ceeb1fc12..d6bd648fe 100644 --- a/src/emqttd_sup.erl +++ b/src/emqttd_sup.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_sup). -author("Feng Lee "). diff --git a/src/emqttd_sysmon.erl b/src/emqttd_sysmon.erl index 8ba4ff569..31c7a0d3e 100644 --- a/src/emqttd_sysmon.erl +++ b/src/emqttd_sysmon.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_sysmon). -author("Feng Lee "). diff --git a/src/emqttd_topic.erl b/src/emqttd_topic.erl index 8e2b22973..07ed4482e 100644 --- a/src/emqttd_topic.erl +++ b/src/emqttd_topic.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_topic). -author("Feng Lee "). diff --git a/src/emqttd_trace.erl b/src/emqttd_trace.erl index 8edcebad0..2bd430b05 100644 --- a/src/emqttd_trace.erl +++ b/src/emqttd_trace.erl @@ -24,7 +24,6 @@ %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_trace). -author("Feng Lee "). diff --git a/src/emqttd_vm.erl b/src/emqttd_vm.erl index eda247247..5d0619631 100644 --- a/src/emqttd_vm.erl +++ b/src/emqttd_vm.erl @@ -1,30 +1,29 @@ -%%------------------------------------------------------------------------------ +%%%----------------------------------------------------------------------------- %%% Copyright (c) 2012-2015 eMQTT.IO, All Rights Reserved. -%% -%% Permission is hereby granted, free of charge, to any person obtaining a copy -%% of this software and associated documentation files (the "Software"), to deal -%% in the Software without restriction, including without limitation the rights -%% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -%% copies of the Software, and to permit persons to whom the Software is -%% furnished to do so, subject to the following conditions: -%% -%% The above copyright notice and this permission notice shall be included in all -%% copies or substantial portions of the Software. -%% -%% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -%% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -%% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -%% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -%% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -%% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -%% SOFTWARE. -%%------------------------------------------------------------------------------ +%%% +%%% Permission is hereby granted, free of charge, to any person obtaining a copy +%%% of this software and associated documentation files (the "Software"), to deal +%%% in the Software without restriction, including without limitation the rights +%%% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +%%% copies of the Software, and to permit persons to whom the Software is +%%% furnished to do so, subject to the following conditions: +%%% +%%% The above copyright notice and this permission notice shall be included in all +%%% copies or substantial portions of the Software. +%%% +%%% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +%%% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +%%% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +%%% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +%%% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +%%% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +%%% SOFTWARE. +%%%----------------------------------------------------------------------------- %%% @doc %%% emqttd erlang vm. %%% %%% @end %%%----------------------------------------------------------------------------- - -module(emqttd_vm). -author('huangdan').