aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar kpayson64 <kpayson@google.com>2018-03-13 12:22:24 -0700
committerGravatar kpayson64 <kpayson@google.com>2018-03-13 12:22:24 -0700
commitfc0d0e75724169511714e56780e45efcdf321bcd (patch)
tree53e9515cf7e37a5852d84386a73f42c330797b75 /src
parent539f5068bd14e3d07b58309b657222919e94aba5 (diff)
Simplify dn_resolver_ares
Diffstat (limited to 'src')
-rw-r--r--src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc b/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc
index a895afa784..c63de3c509 100644
--- a/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc
+++ b/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc
@@ -443,14 +443,6 @@ class AresDnsResolverFactory : public ResolverFactory {
extern grpc_address_resolver_vtable* grpc_resolve_address_impl;
static grpc_address_resolver_vtable* default_resolver;
-static void resolve_address_ares(const char* addr, const char* default_port,
- grpc_pollset_set* interested_parties,
- grpc_closure* on_done,
- grpc_resolved_addresses** addrs) {
- grpc_resolve_address_ares(addr, default_port, interested_parties, on_done,
- addrs);
-}
-
static grpc_error* blocking_resolve_address_ares(
const char* name, const char* default_port,
grpc_resolved_addresses** addresses) {
@@ -459,7 +451,7 @@ static grpc_error* blocking_resolve_address_ares(
}
static grpc_address_resolver_vtable ares_resolver = {
- resolve_address_ares, blocking_resolve_address_ares};
+ grpc_resolve_address_ares, blocking_resolve_address_ares};
void grpc_resolver_dns_ares_init() {
char* resolver_env = gpr_getenv("GRPC_DNS_RESOLVER");