diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-11-20 22:18:45 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-11-20 22:18:45 +0000 |
commit | bc488cd48bb09799a6c8e9f2d08ac604a7a4c0c9 (patch) | |
tree | 8cc447adfab567b4929fce5c22424354d2d8aaa3 /src/libserver/cfg_utils.c | |
parent | 62409ad0943ef71827d941aa41666c477f30e49c (diff) | |
download | rspamd-bc488cd48bb09799a6c8e9f2d08ac604a7a4c0c9.tar.gz rspamd-bc488cd48bb09799a6c8e9f2d08ac604a7a4c0c9.zip |
[Minor] Remove obsolete WITH_HIREDIS define
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r-- | src/libserver/cfg_utils.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index cf80599ed..3f699a843 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -269,9 +269,7 @@ rspamd_config_new (enum rspamd_config_init_flags flags) cfg->images_cache_size = 256; cfg->monitored_ctx = rspamd_monitored_ctx_init (); cfg->neighbours = ucl_object_typed_new (UCL_OBJECT); -#ifdef WITH_HIREDIS cfg->redis_pool = rspamd_redis_pool_init (); -#endif cfg->default_max_shots = DEFAULT_MAX_SHOTS; cfg->max_sessions_cache = DEFAULT_MAX_SESSIONS; cfg->maps_cache_dir = rspamd_mempool_strdup (cfg->cfg_pool, RSPAMD_DBDIR); @@ -345,11 +343,9 @@ rspamd_config_free (struct rspamd_config *cfg) lua_close (cfg->lua_state); } -#ifdef WITH_HIREDIS if (cfg->redis_pool) { rspamd_redis_pool_destroy (cfg->redis_pool); } -#endif rspamd_upstreams_library_unref (cfg->ups_ctx); HASH_CLEAR (hh, cfg->actions); |