1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 17:59:31 +02:00

domain_balancing: Allow for specifying 'type' only

Allow for specifying the 'type' of 'domain_balancing' without specifying
the 'component_number' (as per the example in the documentation).  The
balancing 'type' is then applied to the dynamic number of component
instances.
This commit is contained in:
Holger Weiss 2022-04-04 00:14:32 +02:00
parent 152956c194
commit 121fc716b0

View file

@ -141,7 +141,7 @@ opt_type(domain_balancing) ->
#{component_number => econf:int(2, 1000), #{component_number => econf:int(2, 1000),
type => econf:enum([random, source, destination, type => econf:enum([random, source, destination,
bare_source, bare_destination])}, bare_source, bare_destination])},
[{required, [component_number]}, {return, map}, unique]), [{return, map}, unique]),
[{return, map}]); [{return, map}]);
opt_type(ext_api_path_oauth) -> opt_type(ext_api_path_oauth) ->
econf:binary(); econf:binary();