diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-09 17:46:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-09 17:46:34 +0100 |
commit | ae98b4491585045b0f8655d8335c8044cea15280 (patch) | |
tree | 6eec6bdda5bfecd8da9c562bd23847587be9a904 | |
parent | 5673dffb28edf9d64642db09fcd7b624a89e5fef (diff) | |
download | rspamd-ae98b4491585045b0f8655d8335c8044cea15280.tar.gz rspamd-ae98b4491585045b0f8655d8335c8044cea15280.zip |
[Minor] Do not store serialized ANN
-rw-r--r-- | src/plugins/lua/neural.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua index 815e1ddf0..b88890c24 100644 --- a/src/plugins/lua/neural.lua +++ b/src/plugins/lua/neural.lua @@ -789,7 +789,6 @@ local function load_new_ann(rule, ev_base, set, profile, min_diff) if ann then set.ann = { - ann = ann, version = profile.version, symbols = profile.symbols, distance = min_diff, @@ -798,6 +797,7 @@ local function load_new_ann(rule, ev_base, set, profile, min_diff) local ucl = require "ucl" local profile_serialized = ucl.to_format(profile, 'json-compact', true) + profile.ann = ann -- To avoid serialization local function rank_cb(_, _) -- TODO: maybe add some logging |