commit 0ef0d11: [Minor] Line length tunes to pet luacheck
Vsevolod Stakhov
vsevolod at highsecure.ru
Sat Aug 29 10:00:08 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-08-29 10:58:20 +0100
URL: https://github.com/rspamd/rspamd/commit/0ef0d1138703751fc8886e97a0da402402ae68f2 (HEAD -> master)
[Minor] Line length tunes to pet luacheck
---
src/plugins/lua/neural.lua | 12 ++++++++----
1 file 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
More information about the Commits
mailing list