replace emqttd_opts:g/3 with proplists:get_value/3
This commit is contained in:
parent
541af6256d
commit
150c103cfa
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue