aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-19 17:07:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-22 10:57:29 +0100
commit675b33dd2025cc1f8e732efa9ffc72d55e5a35d9 (patch)
tree1492d1527bd84c5b032ada128d88a1fb12449102 /src/rspamadm
parenteeb0beb73d7769341d1b6aa8fac4f27f7dc76b2e (diff)
downloadrspamd-675b33dd2025cc1f8e732efa9ffc72d55e5a35d9.tar.gz
rspamd-675b33dd2025cc1f8e732efa9ffc72d55e5a35d9.zip
[Project] Adopt normal worker and contorller
Diffstat (limited to 'src/rspamadm')
-rw-r--r--src/rspamadm/control.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/rspamadm/control.c b/src/rspamadm/control.c
index 8a42bdac1..754d874a2 100644
--- a/src/rspamadm/control.c
+++ b/src/rspamadm/control.c
@@ -173,7 +173,6 @@ rspamadm_control (gint argc, gchar **argv, const struct rspamadm_command *_cmd)
struct rspamd_http_connection *conn;
struct rspamd_http_message *msg;
rspamd_inet_addr_t *addr;
- struct timeval tv;
static struct rspamadm_control_cbdata cbdata;
context = g_option_context_new (
@@ -239,16 +238,15 @@ rspamadm_control (gint argc, gchar **argv, const struct rspamadm_command *_cmd)
addr);
msg = rspamd_http_new_message (HTTP_REQUEST);
msg->url = rspamd_fstring_new_init (path, strlen (path));
- double_to_tv (timeout, &tv);
cbdata.argc = argc;
cbdata.argv = argv;
cbdata.path = path;
rspamd_http_connection_write_message (conn, msg, NULL, NULL, &cbdata,
- &tv);
+ timeout);
- event_base_loop (rspamd_main->event_loop, 0);
+ ev_loop (rspamd_main->event_loop, 0);
rspamd_http_connection_unref (conn);
rspamd_inet_address_free (addr);