Move the default refresh interval value to .app file
This commit is contained in:
parent
c09def8e8f
commit
3ef69e6ab0
|
|
@ -110,7 +110,8 @@ default_directory() ->
|
|||
filename:join(Full).
|
||||
|
||||
default_refresh_interval() ->
|
||||
30.
|
||||
{ok, I} = application:get_env(rabbitmq_trust_store, default_refresh_interval),
|
||||
I.
|
||||
|
||||
ensure_directory(Path) ->
|
||||
ok = ensure_parent_directories(Path),
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
{application, rabbitmq_trust_store, [
|
||||
{description, "Client certificate trust store. Provides a way to whitelist client x509 certificates."},
|
||||
{description, "Client certificate trust store. Provides a way to whitelist client x509 certificates."},
|
||||
{vsn, ""},
|
||||
{modules, []},
|
||||
{registered, []},
|
||||
{mod, {rabbit_trust_store_app, []}},
|
||||
{env, []},
|
||||
{env, [
|
||||
{default_refresh_interval, 30}
|
||||
]},
|
||||
{applications, [
|
||||
kernel,
|
||||
stdlib,
|
||||
|
|
|
|||
Loading…
Reference in New Issue