diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2022-04-04 00:14:32 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2022-04-04 00:14:32 +0200 |
commit | 121fc716b08ed997995d0d7903c6e9c05391d0f0 (patch) | |
tree | a840a363eda38013d102c3387a69ff2f9cc0d548 /src | |
parent | Add more configuration examples (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/ejabberd_options.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberd_options.erl b/src/ejabberd_options.erl index 4b29bfffd..8837ef475 100644 --- a/src/ejabberd_options.erl +++ b/src/ejabberd_options.erl @@ -141,7 +141,7 @@ opt_type(domain_balancing) -> #{component_number => econf:int(2, 1000), type => econf:enum([random, source, destination, bare_source, bare_destination])}, - [{required, [component_number]}, {return, map}, unique]), + [{return, map}, unique]), [{return, map}]); opt_type(ext_api_path_oauth) -> econf:binary(); |