mirror of
https://github.com/processone/ejabberd
synced 2025-10-06 03:50:15 +02:00
Use new configuration validator
This commit is contained in:
parent
d48c067681
commit
a02cff0e78
265 changed files with 12412 additions and 9918 deletions
|
@ -78,11 +78,11 @@ remove_user(User, Server, Password) ->
|
|||
|
||||
-spec prog_name(binary()) -> string() | undefined.
|
||||
prog_name(Host) ->
|
||||
ejabberd_config:get_option({extauth_program, Host}).
|
||||
ejabberd_option:extauth_program(Host).
|
||||
|
||||
-spec pool_name(binary()) -> atom().
|
||||
pool_name(Host) ->
|
||||
case ejabberd_config:get_option({extauth_pool_name, Host}) of
|
||||
case ejabberd_option:extauth_pool_name(Host) of
|
||||
undefined ->
|
||||
list_to_atom("extauth_pool_" ++ binary_to_list(Host));
|
||||
Name ->
|
||||
|
@ -95,7 +95,7 @@ worker_name(Pool, N) ->
|
|||
|
||||
-spec pool_size(binary()) -> pos_integer().
|
||||
pool_size(Host) ->
|
||||
case ejabberd_config:get_option({extauth_pool_size, Host}) of
|
||||
case ejabberd_option:extauth_pool_size(Host) of
|
||||
undefined ->
|
||||
try erlang:system_info(logical_processors)
|
||||
catch _:_ -> 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue