diff options
Diffstat (limited to 'p11p-daemon/src/p11p_config.erl')
-rw-r--r-- | p11p-daemon/src/p11p_config.erl | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/p11p-daemon/src/p11p_config.erl b/p11p-daemon/src/p11p_config.erl index 1fc83e9..9c7749c 100644 --- a/p11p-daemon/src/p11p_config.erl +++ b/p11p-daemon/src/p11p_config.erl @@ -9,7 +9,8 @@ %%-export([config/0]). -export([nameof/1]). -export([tokens/0]). --export([remotebin_path/0, modules_for_token/1, module_path/1, module_env/1, token_mode/1]). +-export([remotebin_path/0, modules_for_token/1, module_path/1, module_env/1, + token_mode/1]). -export_type([token_mode_t/0]). %% Genserver callbacks. @@ -118,8 +119,9 @@ code_change(_OldVersion, State, _Extra) -> init_state() -> #state { - remotebin_path = application:get_env(p11p, remotebin_path, - "/usr/local/libexec/p11-kit/p11-kit-remote"), + remotebin_path = + application:get_env(p11p, remotebin_path, + "/usr/local/libexec/p11-kit/p11-kit-remote"), tokens = conf_tokens(application:get_env(p11p, groups, [])) }. @@ -157,7 +159,8 @@ new_module(Name, Path, Env) -> env = Env }. --spec mode(p11p_config:token_mode_t(), non_neg_integer()) -> p11p_config:token_mode_t(). +-spec mode(p11p_config:token_mode_t(), non_neg_integer()) -> + p11p_config:token_mode_t(). mode({balance, Args}, NModules) -> {balance, Args ++ [1 || _ <- lists:seq(1, NModules - length(Args))]}; mode(Conf, _) -> @@ -205,5 +208,3 @@ tokens_init_test_() -> %% modules_for_token_test_() -> %% {setup, %% fun() -> - - |