event_base_set (ctx->ev_base, &sev);
signal_add (&sev, NULL);
- /* Init bloom filter */
- bf = rspamd_bloom_create (2000000L, RSPAMD_DEFAULT_BLOOM_HASHES);
- /* Try to read hashes from file */
- if (!read_hashes_file (worker)) {
- msg_err ("cannot read hashes file, it can be created after save procedure");
- }
-
if (ctx->strict_hash) {
static_hash = g_hash_table_new_full (rspamd_str_hash, rspamd_str_equal,
NULL, rspamd_fuzzy_free_node);
frequent = g_queue_new ();
}
+ /* Init bloom filter */
+ bf = rspamd_bloom_create (2000000L, RSPAMD_DEFAULT_BLOOM_HASHES);
+ /* Try to read hashes from file */
+ if (!read_hashes_file (worker)) {
+ msg_err ("cannot read hashes file, it can be created after save procedure");
+ }
+
/* Timer event */
evtimer_set (&tev, sync_callback, worker);
event_base_set (ctx->ev_base, &tev);