diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2021-04-16 10:20:13 +0200 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2021-04-16 10:20:13 +0200 |
commit | 54916caf65507a8a08d56b0a3251baa8f3fd2ad3 (patch) | |
tree | d0564def28f1d7bf70c98ac5bff31576bd3f89f1 /src/mod_shared_roster.erl | |
parent | Reconfigure cache in mod_shared_roster when options change (diff) |
Use proper source for cache options in mod_shared_roster
Diffstat (limited to 'src/mod_shared_roster.erl')
-rw-r--r-- | src/mod_shared_roster.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_shared_roster.erl b/src/mod_shared_roster.erl index 88676a48..422173b7 100644 --- a/src/mod_shared_roster.erl +++ b/src/mod_shared_roster.erl @@ -166,9 +166,9 @@ init_cache(Mod, Host, Opts) -> -spec cache_opts(gen_mod:opts()) -> [proplists:property()]. cache_opts(Opts) -> - MaxSize = mod_private_opt:cache_size(Opts), - CacheMissed = mod_private_opt:cache_missed(Opts), - LifeTime = mod_private_opt:cache_life_time(Opts), + MaxSize = mod_shared_roster_opt:cache_size(Opts), + CacheMissed = mod_shared_roster_opt:cache_missed(Opts), + LifeTime = mod_shared_roster_opt:cache_life_time(Opts), [{max_size, MaxSize}, {cache_missed, CacheMissed}, {life_time, LifeTime}]. -spec use_cache(module(), binary()) -> boolean(). |