aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_process.c
diff options
context:
space:
mode:
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 ++) {