1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-05 19:42:11 +02:00

Use new configuration validator

This commit is contained in:
Evgeny Khramtsov 2019-06-14 12:33:26 +03:00
parent d48c067681
commit a02cff0e78
265 changed files with 12412 additions and 9918 deletions

View file

@ -67,7 +67,7 @@ init(_Host, _Opts) ->
use_cache(Host) ->
case mnesia:table_info(mqtt_pub, storage_type) of
disc_only_copies ->
gen_mod:get_module_opt(Host, mod_mqtt, use_cache);
mod_mqtt_opt:use_cache(Host);
_ ->
false
end.
@ -217,7 +217,7 @@ subscribe({U, S, R} = USR, TopicFilter, SubOpts, ID) ->
end,
case mnesia:transaction(F) of
{atomic, _} -> ok;
{abored, Reason} ->
{aborted, Reason} ->
db_fail("Failed to subscribe ~s to ~s",
Reason, [jid:encode(USR), TopicFilter])
end.