aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-04-07 18:42:03 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-04-08 18:42:05 +0100
commitae103665a2ce2321f109a21a7534db6629a6132b (patch)
tree22347f2fa011195b5ca433c7116cf1914bf01bf0 /src/libserver
parent748f80fdfe4076488442aecf418fa8ac30bce72e (diff)
downloadrspamd-ae103665a2ce2321f109a21a7534db6629a6132b.tar.gz
rspamd-ae103665a2ce2321f109a21a7534db6629a6132b.zip
[Project] Rework grow factor as it is currently broken
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/protocol.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index 8da246bdb..5de980352 100644
--- a/src/libserver/protocol.c
+++ b/src/libserver/protocol.c
@@ -1322,15 +1322,13 @@ rspamd_scan_result_ucl(struct rspamd_task *task,
sobj = rspamd_metric_symbol_ucl(task, sym);
ucl_object_insert_key(obj, sobj, sym->name, 0, false);
}
- })
+ });
- if (task->cmd != CMD_CHECK)
- {
+ if (task->cmd != CMD_CHECK) {
/* For checkv2 we insert symbols as a separate object */
ucl_object_insert_key(top, obj, "symbols", 0, false);
}
- else
- {
+ else {
/* For legacy check we just insert it as "default" all together */
ucl_object_insert_key(top, obj, DEFAULT_METRIC, 0, false);
}