From 4495d61c62c77ef37e1a4d8c0c5bfd237dcac9fb Mon Sep 17 00:00:00 2001 From: Feng Date: Sat, 26 Mar 2016 19:01:33 +0800 Subject: [PATCH] a --- src/emqttd_plugins.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emqttd_plugins.erl b/src/emqttd_plugins.erl index ee1935217..271b9bd08 100644 --- a/src/emqttd_plugins.erl +++ b/src/emqttd_plugins.erl @@ -101,7 +101,7 @@ plugin(PluginsDir, AppFile0) -> Descr = proplists:get_value(description, Attrs, ""), #mqtt_plugin{name = Name, version = Ver, config = AppsEnv1, descr = Descr}. -%% @doc Load One Plugin +%% @doc Load a Plugin -spec(load(atom()) -> ok | {error, any()}). load(PluginName) when is_atom(PluginName) -> case lists:member(PluginName, names(started_app)) of @@ -161,7 +161,7 @@ find_plugin(Name) -> find_plugin(Name, Plugins) -> lists:keyfind(Name, 2, Plugins). -%% @doc UnLoad One Plugin +%% @doc UnLoad a Plugin -spec(unload(atom()) -> ok | {error, any()}). unload(PluginName) when is_atom(PluginName) -> case {lists:member(PluginName, names(started_app)), lists:member(PluginName, names(plugin))} of