commit 70811a8: [Minor] Store neural score in task cache

Vsevolod Stakhov vsevolod at highsecure.ru
Tue May 11 12:35:03 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-05-11 13:31:14 +0100
URL: https://github.com/rspamd/rspamd/commit/70811a88b383e270c4c5959a2c2a4b3a46042f89 (HEAD -> master)

[Minor] Store neural score in task cache

---
 src/plugins/lua/neural.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua
index 2ac8df59f..57ff9cc21 100644
--- a/src/plugins/lua/neural.lua
+++ b/src/plugins/lua/neural.lua
@@ -114,6 +114,7 @@ local function ann_scores_filter(task)
       score = out[1]
 
       local symscore = string.format('%.3f', score)
+      task:cache_set(rule.prefix .. '_neural_score', score)
       lua_util.debugm(N, task, '%s:%s:%s ann score: %s',
           rule.prefix, set.name, set.ann.version, symscore)
 


More information about the Commits mailing list