mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +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:
parent
152956c194
commit
121fc716b0
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue