diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-20 17:03:51 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-20 17:03:51 +0000 |
commit | 3d10a9ead7d1241035160ab3355577051186b0fd (patch) | |
tree | 7413ffa6f6ecf18422e95be046f06b9a40e4bc43 /src/controller.c | |
parent | 64e6d18a31fd069a83baafe308a8c5d6ec3591e1 (diff) | |
download | rspamd-3d10a9ead7d1241035160ab3355577051186b0fd.tar.gz rspamd-3d10a9ead7d1241035160ab3355577051186b0fd.zip |
Rework upstreams initialization
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/controller.c b/src/controller.c index 31274f5d6..c0783ce9d 100644 --- a/src/controller.c +++ b/src/controller.c @@ -2550,9 +2550,8 @@ start_controller_worker (struct rspamd_worker *worker) ctx->ev_base, worker->srv->cfg); - worker->srv->cfg->ups_ctx = rspamd_upstreams_library_init (ctx->resolver->r, - ctx->ev_base); - rspamd_upstreams_library_config (worker->srv->cfg, worker->srv->cfg->ups_ctx); + rspamd_upstreams_library_config (worker->srv->cfg, worker->srv->cfg->ups_ctx, + ctx->ev_base, ctx->resolver->r); /* Maps events */ rspamd_map_watch (worker->srv->cfg, ctx->ev_base); rspamd_symbols_cache_start_refresh (worker->srv->cfg->cache, ctx->ev_base); |