diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-11 15:00:01 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-11 15:00:01 +0100 |
commit | 6943c3c3a4dd1334aa041fcd7df9598ecec3f152 (patch) | |
tree | fa00017db0e4bf42d211c92088b72912c423fe7d /src/fuzzy_storage.c | |
parent | 641353ecb1c68ef7642a15d861ff59aba672ac54 (diff) | |
download | rspamd-6943c3c3a4dd1334aa041fcd7df9598ecec3f152.tar.gz rspamd-6943c3c3a4dd1334aa041fcd7df9598ecec3f152.zip |
[Minor] Refactor DNS resolver invocations
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r-- | src/fuzzy_storage.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index e82e9062a..43c975459 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -2989,7 +2989,7 @@ start_fuzzy (struct rspamd_worker *worker) ctx->cfg = worker->srv->cfg; double_to_tv (ctx->master_timeout, &ctx->master_io_tv); - ctx->resolver = dns_resolver_init (worker->srv->logger, + ctx->resolver = rspamd_dns_resolver_init (worker->srv->logger, ctx->ev_base, worker->srv->cfg); rspamd_upstreams_library_config (worker->srv->cfg, ctx->cfg->ups_ctx, @@ -3167,9 +3167,9 @@ start_fuzzy (struct rspamd_worker *worker) } /* Maps events */ - ctx->resolver = dns_resolver_init (worker->srv->logger, - ctx->ev_base, - worker->srv->cfg); + ctx->resolver = rspamd_dns_resolver_init (worker->srv->logger, + ctx->ev_base, + worker->srv->cfg); rspamd_map_watch (worker->srv->cfg, ctx->ev_base, ctx->resolver, worker, 0); /* Get peer pipe */ |