/* Maps events */
rspamd_map_watch (worker->srv->cfg, ctx->ev_base);
rspamd_symbols_cache_start_refresh (worker->srv->cfg->cache, ctx->ev_base);
+ rspamd_stat_init (worker->srv->cfg);
event_base_loop (ctx->ev_base, 0);
(void)rspamd_lua_post_load_config (cfg);
init_dynamic_config (cfg);
- rspamd_stat_init (cfg);
rspamd_url_init (cfg->tld_file);
/* Insert classifiers symbols */
msg_info ("terminating...");
rspamd_symbols_cache_destroy (rspamd_main->cfg->cache);
- rspamd_stat_close ();
rspamd_log_close (rspamd_main->logger);
rspamd_config_free (rspamd_main->cfg);
g_free (rspamd_main->cfg);
#include "libmime/message.h"
#include "main.h"
#include "keypairs_cache.h"
+#include "libstat/stat_api.h"
#include "lua/lua_common.h"
/* XXX: stupid default */
ctx->keys_cache = rspamd_keypair_cache_new (256);
+ rspamd_stat_init (worker->srv->cfg);
event_base_loop (ctx->ev_base, 0);