diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-19 17:07:56 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-22 10:57:29 +0100 |
commit | 675b33dd2025cc1f8e732efa9ffc72d55e5a35d9 (patch) | |
tree | 1492d1527bd84c5b032ada128d88a1fb12449102 /src/libstat/backends/redis_backend.c | |
parent | eeb0beb73d7769341d1b6aa8fac4f27f7dc76b2e (diff) | |
download | rspamd-675b33dd2025cc1f8e732efa9ffc72d55e5a35d9.tar.gz rspamd-675b33dd2025cc1f8e732efa9ffc72d55e5a35d9.zip |
[Project] Adopt normal worker and contorller
Diffstat (limited to 'src/libstat/backends/redis_backend.c')
-rw-r--r-- | src/libstat/backends/redis_backend.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c index 4e0d806f9..5d8ccc065 100644 --- a/src/libstat/backends/redis_backend.c +++ b/src/libstat/backends/redis_backend.c @@ -1039,9 +1039,7 @@ rspamd_redis_fin_learn (gpointer data) rt->has_event = FALSE; /* Stop timeout */ - if (rspamd_event_pending (&rt->timeout_event, EV_TIMEOUT)) { - event_del (&rt->timeout_event); - } + ev_timer_stop (rt->task->event_loop, &rt->timeout_event); if (rt->redis) { redis = rt->redis; @@ -1654,7 +1652,6 @@ rspamd_redis_learn_tokens (struct rspamd_task *task, GPtrArray *tokens, struct upstream *up; struct upstream_list *ups; rspamd_inet_addr_t *addr; - struct timeval tv; rspamd_fstring_t *query; const gchar *redis_cmd; rspamd_token_t *tok; |