summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-08-29 10:58:20 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-08-29 10:58:20 +0100
commit0ef0d1138703751fc8886e97a0da402402ae68f2 (patch)
tree3d229f5f2b527dd35d288e1b8c9c0f4a004cb126
parent26254f787bf010cc8ca198cecee83c30ef0dc844 (diff)
downloadrspamd-0ef0d1138703751fc8886e97a0da402402ae68f2.tar.gz
rspamd-0ef0d1138703751fc8886e97a0da402402ae68f2.zip
[Minor] Line length tunes to pet luacheck
-rw-r--r--src/plugins/lua/neural.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua
index 5a19bd043..10e49901f 100644
--- a/src/plugins/lua/neural.lua
+++ b/src/plugins/lua/neural.lua
@@ -1067,10 +1067,12 @@ local function load_new_ann(rule, ev_base, set, profile, min_diff)
'ZADD', -- command
{set.prefix, tostring(rspamd_util.get_time()), profile_serialized}
)
- rspamd_logger.infox(rspamd_config, 'loaded ANN for %s:%s from %s; %s bytes compressed; version=%s',
+ rspamd_logger.infox(rspamd_config,
+ 'loaded ANN for %s:%s from %s; %s bytes compressed; version=%s',
rule.prefix, set.name, ann_key, #data[1], profile.version)
else
- rspamd_logger.errx(rspamd_config, 'cannot unpack/deserialise ANN for %s:%s from Redis key %s',
+ rspamd_logger.errx(rspamd_config,
+ 'cannot unpack/deserialise ANN for %s:%s from Redis key %s',
rule.prefix, set.name, ann_key)
end
end
@@ -1085,11 +1087,13 @@ local function load_new_ann(rule, ev_base, set, profile, min_diff)
if rule.max_inputs then
-- We can use PCA
set.ann.pca = rspamd_tensor.load(pca_data)
- rspamd_logger.infox(rspamd_config, 'loaded PCA for ANN for %s:%s from %s; %s bytes compressed; version=%s',
+ rspamd_logger.infox(rspamd_config,
+ 'loaded PCA for ANN for %s:%s from %s; %s bytes compressed; version=%s',
rule.prefix, set.name, ann_key, #data[2], profile.version)
else
-- no need in pca, why is it there?
- rspamd_logger.warnx(rspamd_config, 'extra PCA for ANN for %s:%s from Redis key %s: no max inputs defined',
+ rspamd_logger.warnx(rspamd_config,
+ 'extra PCA for ANN for %s:%s from Redis key %s: no max inputs defined',
rule.prefix, set.name, ann_key)
end
else