mod_push: Add function specification

This commit is contained in:
Holger Weiss 2018-04-16 18:14:07 +02:00
parent e5cb9dad40
commit 0282cf64a0
1 changed files with 1 additions and 0 deletions

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 ->
fun (B) when is_boolean(B) -> B end.
-spec mod_options(binary()) -> [{atom(), any()}].
mod_options(Host) ->
[{db_type, ejabberd_config:default_db(Host, ?MODULE)},
{use_cache, ejabberd_config:use_cache(Host)},