diff options
author | Josh Soref <2119212+jsoref@users.noreply.github.com> | 2022-02-22 17:01:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 22:01:28 +0000 |
commit | 2b8e6958f40ef36c1508118ac36a43694283a83c (patch) | |
tree | fa9a9b6843546bdb297b00bc78b83ab4c318f724 /src/libstat/learn_cache | |
parent | 85faeb34719e2b0898d319b02416f669d70f4562 (diff) | |
download | rspamd-2b8e6958f40ef36c1508118ac36a43694283a83c.tar.gz rspamd-2b8e6958f40ef36c1508118ac36a43694283a83c.zip |
Spelling (#4086)
[Rework] Massive spelling fix from @jsoref
Diffstat (limited to 'src/libstat/learn_cache')
-rw-r--r-- | src/libstat/learn_cache/redis_cache.c | 6 | ||||
-rw-r--r-- | src/libstat/learn_cache/sqlite3_cache.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/libstat/learn_cache/redis_cache.c b/src/libstat/learn_cache/redis_cache.c index 570f3f6a2..479623942 100644 --- a/src/libstat/learn_cache/redis_cache.c +++ b/src/libstat/learn_cache/redis_cache.c @@ -449,13 +449,13 @@ rspamd_stat_cache_redis_check (struct rspamd_task *task, gchar *h; if (rspamd_session_blocked (task->s)) { - return RSPAMD_LEARN_INGORE; + return RSPAMD_LEARN_IGNORE; } h = rspamd_mempool_get_variable (task->task_pool, "words_hash"); if (h == NULL) { - return RSPAMD_LEARN_INGORE; + return RSPAMD_LEARN_IGNORE; } if (redisAsyncCommand (rt->redis, rspamd_stat_cache_redis_get, rt, @@ -483,7 +483,7 @@ rspamd_stat_cache_redis_learn (struct rspamd_task *task, gint flag; if (rt == NULL || rt->ctx == NULL || rspamd_session_blocked (task->s)) { - return RSPAMD_LEARN_INGORE; + return RSPAMD_LEARN_IGNORE; } h = rspamd_mempool_get_variable (task->task_pool, "words_hash"); diff --git a/src/libstat/learn_cache/sqlite3_cache.c b/src/libstat/learn_cache/sqlite3_cache.c index 52921326d..755114367 100644 --- a/src/libstat/learn_cache/sqlite3_cache.c +++ b/src/libstat/learn_cache/sqlite3_cache.c @@ -184,7 +184,7 @@ rspamd_stat_cache_sqlite3_check (struct rspamd_task *task, gint64 flag; if (task->tokens == NULL || task->tokens->len == 0) { - return RSPAMD_LEARN_INGORE; + return RSPAMD_LEARN_IGNORE; } if (ctx != NULL && ctx->db != NULL) { @@ -223,7 +223,7 @@ rspamd_stat_cache_sqlite3_check (struct rspamd_task *task, /* Already learned */ msg_warn_task ("already seen stat hash: %*bs", rspamd_cryptobox_HASHBYTES, out); - return RSPAMD_LEARN_INGORE; + return RSPAMD_LEARN_IGNORE; } else { /* Need to relearn */ @@ -248,7 +248,7 @@ rspamd_stat_cache_sqlite3_learn (struct rspamd_task *task, h = rspamd_mempool_get_variable (task->task_pool, "words_hash"); if (h == NULL) { - return RSPAMD_LEARN_INGORE; + return RSPAMD_LEARN_IGNORE; } flag = !!is_spam ? 1 : 0; |