aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_process.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-11 11:18:28 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-11 11:18:28 +0000
commit13371ea6841d6b9668b313aecd2e860e173085e5 (patch)
tree25460d94a77f15b785eb4949d50c6597d2097369 /src/libstat/stat_process.c
parentb9dd124a65b946df04e1edc7722f024f798913b3 (diff)
downloadrspamd-13371ea6841d6b9668b313aecd2e860e173085e5.tar.gz
rspamd-13371ea6841d6b9668b313aecd2e860e173085e5.zip
Rework cache API slightly
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r--src/libstat/stat_process.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index 74b226407..086b7e298 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -391,8 +391,7 @@ rspamd_stat_cache_check (struct rspamd_stat_ctx *st_ctx,
if (cl->cache && cl->cachecf) {
rt = cl->cache->runtime (task, cl->cachecf, FALSE);
- learn_res = cl->cache->check (task, spam,
- cl->cachecf, rt);
+ learn_res = cl->cache->check (task, spam, rt);
}
if (learn_res == RSPAMD_LEARN_INGORE) {
@@ -576,7 +575,7 @@ rspamd_stat_backends_post_learn (struct rspamd_stat_ctx *st_ctx,
if (cl->cache) {
cache_run = cl->cache->runtime (task, cl->cachecf, TRUE);
- cl->cache->learn (task, spam, cache_run, cl->cachecf);
+ cl->cache->learn (task, spam, cache_run);
}
for (j = 0; j < cl->statfiles_ids->len; j ++) {