summaryrefslogtreecommitdiff
path: root/src/ejabberd_riak_sup.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-05-21 11:33:16 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-05-21 11:33:16 +0300
commitaf29fb21df63a562d2d840623c4d2012c99ca410 (patch)
treee23f3fec4d2484a6113865256337ccb8a05a2be3 /src/ejabberd_riak_sup.erl
parentDeclare ejabberd_oauth behaviour (diff)
Get rid of detection of modules' db_type detection
The detection sometimes leads to errorneous warnings. We need to improve it later. For now I just remove the detection as it doesn't fully work anyway.
Diffstat (limited to 'src/ejabberd_riak_sup.erl')
-rw-r--r--src/ejabberd_riak_sup.erl7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ejabberd_riak_sup.erl b/src/ejabberd_riak_sup.erl
index 30be65c4..67b50ea6 100644
--- a/src/ejabberd_riak_sup.erl
+++ b/src/ejabberd_riak_sup.erl
@@ -89,16 +89,11 @@ is_riak_configured(Host) ->
ejabberd_auth:auth_modules(Host)),
SMConfigured = ejabberd_config:get_option({sm_db_type, Host}) == riak,
RouterConfigured = ejabberd_config:get_option({router_db_type, Host}) == riak,
- Modules = ejabberd_config:get_option({modules, Host}, []),
- ModuleWithRiakDBConfigured = lists:any(
- fun({Module, Opts}) ->
- gen_mod:db_type(Host, Opts, Module) == riak
- end, Modules),
ServerConfigured or PortConfigured or StartIntervalConfigured
or PoolConfigured or CacertConfigured
or UserConfigured or PassConfigured
or SMConfigured or RouterConfigured
- or AuthConfigured or ModuleWithRiakDBConfigured.
+ or AuthConfigured.
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).