replace emqttd_opts:g/3 with proplists:get_value/3

This commit is contained in:
Feng 2016-02-13 18:36:33 +08:00
parent 541af6256d
commit 150c103cfa
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ env(Key) ->
end.
cache_env(Key) ->
Val = emqttd_opts:g(Key, emqttd_broker:env(pubsub)),
Val = proplists:get_value(Key, emqttd_broker:env(pubsub)),
put({pubsub, Key}, Val),
Val.