]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Slight explanations of the decision made
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 12 Sep 2024 09:55:54 +0000 (10:55 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 12 Sep 2024 09:55:54 +0000 (10:55 +0100)
src/fuzzy_storage.c

index 770f428ad18705ae0606b4653fce36234220dfd0..33bb144185a1558ceb6f8b4b5a154d555898e71e 100644 (file)
@@ -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;
 }