25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

mod_push: Add function specification

This commit is contained in:
Holger Weiss 2018-04-16 18:14:07 +02:00
parent e5cb9dad40
commit 0282cf64a0

View File

@ -134,6 +134,7 @@ mod_opt_type(O) when O == cache_life_time; O == cache_size ->
mod_opt_type(O) when O == use_cache; O == cache_missed -> mod_opt_type(O) when O == use_cache; O == cache_missed ->
fun (B) when is_boolean(B) -> B end. fun (B) when is_boolean(B) -> B end.
-spec mod_options(binary()) -> [{atom(), any()}].
mod_options(Host) -> mod_options(Host) ->
[{db_type, ejabberd_config:default_db(Host, ?MODULE)}, [{db_type, ejabberd_config:default_db(Host, ?MODULE)},
{use_cache, ejabberd_config:use_cache(Host)}, {use_cache, ejabberd_config:use_cache(Host)},