summaryrefslogtreecommitdiffstats
path: root/src/libstat/learn_cache
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-15 16:37:58 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-22 10:57:29 +0100
commit98897c179754fb04762d325c83f1e057b44697a3 (patch)
treed53ea0de2cf2fb2e50cefe5496aa80963f8621f5 /src/libstat/learn_cache
parent36ab21685bbf354108a7f12e1dda36761f655e68 (diff)
downloadrspamd-98897c179754fb04762d325c83f1e057b44697a3.tar.gz
rspamd-98897c179754fb04762d325c83f1e057b44697a3.zip
[Project] First refactoring step libevent->libev
Diffstat (limited to 'src/libstat/learn_cache')
-rw-r--r--src/libstat/learn_cache/redis_cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstat/learn_cache/redis_cache.c b/src/libstat/learn_cache/redis_cache.c
index aea024e06..3ae30c440 100644
--- a/src/libstat/learn_cache/redis_cache.c
+++ b/src/libstat/learn_cache/redis_cache.c
@@ -21,7 +21,7 @@
#include "cryptobox.h"
#include "ucl.h"
#include "hiredis.h"
-#include "adapters/libevent.h"
+#include "adapters/libev.h"
#include "lua/lua_common.h"
#define REDIS_DEFAULT_TIMEOUT 0.5
@@ -398,11 +398,11 @@ rspamd_stat_cache_redis_runtime (struct rspamd_task *task,
g_assert (rt->redis != NULL);
- redisLibeventAttach (rt->redis, task->ev_base);
+ redisLibevAttach (task->event_loop, rt->redis);
/* Now check stats */
event_set (&rt->timeout_event, -1, EV_TIMEOUT, rspamd_redis_cache_timeout, rt);
- event_base_set (task->ev_base, &rt->timeout_event);
+ event_base_set (task->event_loop, &rt->timeout_event);
rspamd_redis_cache_maybe_auth (ctx, rt->redis);
if (!learn) {