aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-14 11:35:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-14 11:35:52 +0100
commitb80e8b8477dd019ad9384541d499b57f5432393a (patch)
tree6d7e2da28b6a87b6e25acb0693659b9ace19aff7 /src/libserver/task.c
parent13724fefdc9dbc31609938c06d6c99ba47d1729d (diff)
downloadrspamd-b80e8b8477dd019ad9384541d499b57f5432393a.tar.gz
rspamd-b80e8b8477dd019ad9384541d499b57f5432393a.zip
[Project] Rework some more functions to work with shadow results
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r--src/libserver/task.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c
index 30ba0f195..12f20f393 100644
--- a/src/libserver/task.c
+++ b/src/libserver/task.c
@@ -1077,7 +1077,7 @@ rspamd_task_log_metric_res (struct rspamd_task *task,
khiter_t k;
mres = task->result;
- act = rspamd_check_action_metric (task, NULL);
+ act = rspamd_check_action_metric (task, NULL, NULL);
if (mres != NULL) {
switch (lf->type) {
@@ -1876,7 +1876,7 @@ rspamd_task_timeout (EV_P_ ev_timer *w, int revents)
if (task->cfg->soft_reject_on_timeout) {
struct rspamd_action *action, *soft_reject;
- action = rspamd_check_action_metric (task, NULL);
+ action = rspamd_check_action_metric (task, NULL, NULL);
if (action->action_type != METRIC_ACTION_REJECT) {
soft_reject = rspamd_config_get_action_by_type (task->cfg,
@@ -1887,7 +1887,7 @@ rspamd_task_timeout (EV_P_ ev_timer *w, int revents)
NAN,
"timeout processing message",
"task timeout",
- 0);
+ 0, NULL);
}
}
@@ -1905,7 +1905,7 @@ rspamd_task_timeout (EV_P_ ev_timer *w, int revents)
if (task->cfg->soft_reject_on_timeout) {
struct rspamd_action *action, *soft_reject;
- action = rspamd_check_action_metric (task, NULL);
+ action = rspamd_check_action_metric (task, NULL, NULL);
if (action->action_type != METRIC_ACTION_REJECT) {
soft_reject = rspamd_config_get_action_by_type (task->cfg,
@@ -1916,7 +1916,7 @@ rspamd_task_timeout (EV_P_ ev_timer *w, int revents)
NAN,
"timeout post-processing message",
"task timeout",
- 0);
+ 0, NULL);
}
}