Use application:get_env/3
This commit is contained in:
parent
4eda2a810d
commit
728dd57ffc
|
|
@ -1180,12 +1180,9 @@ get_proc_name() ->
|
||||||
{ok, Name}
|
{ok, Name}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
%% application:get_env/3 is only available in R16B01 or later.
|
%% application:get_env/3 is available in R16B01 or later.
|
||||||
get_env(Application, Key, Def) ->
|
get_env(Application, Key, Def) ->
|
||||||
case application:get_env(Application, Key) of
|
application:get_env(Application, Key, Def).
|
||||||
{ok, Val} -> Val;
|
|
||||||
undefined -> Def
|
|
||||||
end.
|
|
||||||
|
|
||||||
get_channel_operation_timeout() ->
|
get_channel_operation_timeout() ->
|
||||||
%% Default channel_operation_timeout set to net_ticktime + 10s to
|
%% Default channel_operation_timeout set to net_ticktime + 10s to
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue