From: Vsevolod Stakhov Date: Mon, 8 Jul 2019 09:47:39 +0000 (+0100) Subject: [Minor] Neural: Another fix in saving profile X-Git-Tag: 2.0~637 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d8f5c5e7f4ee08aa033805313fe9b5585a2d4fa;p=thirdparty%2Frspamd.git [Minor] Neural: Another fix in saving profile --- diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua index 10c1eadd4d..7b6c2fa5f8 100644 --- a/src/plugins/lua/neural.lua +++ b/src/plugins/lua/neural.lua @@ -285,7 +285,7 @@ local function new_ann_profile(task, rule, set, version) true, -- is write add_cb, --callback 'ZADD', -- command - {set.prefix, tostring(rspamd_util.get_time()), new_ann_profile} + {set.prefix, tostring(rspamd_util.get_time()), profile_serialized} ) return profile @@ -785,7 +785,7 @@ local function load_new_ann(rule, ev_base, set, profile, min_diff) true, -- is write rank_cb, --callback 'ZADD', -- command - {set.prefix, tostring(rspamd_util.get_time()), new_ann_profile} + {set.prefix, tostring(rspamd_util.get_time()), profile_serialized} ) rspamd_logger.infox(rspamd_config, 'loaded ANN for %s from %s; %s bytes compressed; version=%s', rule.prefix .. ':' .. set.name, ann_key, #ann_data, profile.version)