aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-09-12 10:55:54 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-09-12 10:55:54 +0100
commit4cf6d9092b12cf5350e271bc5bf1f7f2c98dfd24 (patch)
tree0a4f42415a31340235e4021d1ec4e84db11ef28f /src/fuzzy_storage.c
parent88b2538ad7a0f89bcc77d6de3d2df28d66ce10e9 (diff)
downloadrspamd-4cf6d9092b12cf5350e271bc5bf1f7f2c98dfd24.tar.gz
rspamd-4cf6d9092b12cf5350e271bc5bf1f7f2c98dfd24.zip
[Minor] Slight explanations of the decision made
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r--src/fuzzy_storage.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 770f428ad..33bb14418 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -1604,6 +1604,9 @@ rspamd_fuzzy_process_command(struct fuzzy_session *session)
/* Check expire */
static ev_tstamp today = NAN;
+ /*
+ * Update `today` sometimes
+ */
if (isnan(today)) {
today = ev_time();
}
@@ -3024,8 +3027,8 @@ fuzzy_add_keypair_from_ucl(struct rspamd_config *cfg, const ucl_object_t *obj,
}
}
- msg_debug("loaded keypair %*bs; expire=%f; rate=%f; burst=%s", crypto_box_publickeybytes(), pk,
- key->expire, key->rate, key->burst);
+ msg_debug("loaded keypair %*bs; expire=%f; rate=%f; burst=%s; name=%s", crypto_box_publickeybytes(), pk,
+ key->expire, key->rate, key->burst, key->name);
return key;
}