From 121fc716b08ed997995d0d7903c6e9c05391d0f0 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 4 Apr 2022 00:14:32 +0200 Subject: 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. --- src/ejabberd_options.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ejabberd_options.erl b/src/ejabberd_options.erl index 4b29bfff..8837ef47 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(); -- cgit v1.2.3