From 5673e8800f848d46d0001ae6f48e0e1fa8d7ff87 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 28 Dec 2016 16:41:36 +0000 Subject: [PATCH] [Fix] Fix keys names --- src/plugins/lua/fann_redis.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/lua/fann_redis.lua b/src/plugins/lua/fann_redis.lua index d5d27d4da..76ab54062 100644 --- a/src/plugins/lua/fann_redis.lua +++ b/src/plugins/lua/fann_redis.lua @@ -556,7 +556,7 @@ local function train_fann(_, ev_base, elt) false, -- is write redis_unlock_cb, --callback 'DEL', -- command - {gen_fann_prefix(elt) .. '_lock'} + {gen_fann_prefix(elt) .. '_locked'} ) if string.match(err, 'NOSCRIPT') then load_scripts(rspamd_config, ev_base, nil) @@ -575,7 +575,7 @@ local function train_fann(_, ev_base, elt) true, -- is write redis_unlock_cb, --callback 'DEL', -- command - {gen_fann_prefix(elt) .. '_lock'} + {gen_fann_prefix(elt) .. '_locked'} ) else rspamd_logger.infox(rspamd_config, 'trained ANN %s: MSE: %s', @@ -605,7 +605,7 @@ local function train_fann(_, ev_base, elt) true, -- is write redis_unlock_cb, --callback 'DEL', -- command - {gen_fann_prefix(elt) .. '_lock'} + {gen_fann_prefix(elt) .. '_locked'} ) else -- Decompress and convert to numbers each training vector @@ -676,7 +676,7 @@ local function train_fann(_, ev_base, elt) true, -- is write redis_unlock_cb, --callback 'DEL', -- command - {gen_fann_prefix(elt) .. '_lock'} + {gen_fann_prefix(elt) .. '_locked'} ) else -- Decompress and convert to numbers each training vector @@ -731,7 +731,7 @@ local function train_fann(_, ev_base, elt) true, -- is write redis_lock_extend_cb, --callback 'INCRBY', -- command - {gen_fann_prefix(elt) .. '_lock', '30'} + {gen_fann_prefix(elt) .. '_locked', '30'} ) else return false -- do not plan any more updates -- 2.39.5