pull/35153/head
yijiem 12 months ago
parent 001f44bd7d
commit a4107f7d81
  1. 2
      src/core/lib/event_engine/posix_engine/posix_engine.cc

@ -559,6 +559,7 @@ PosixEventEngine::GetDNSResolver(
// If c-ares is supported on the platform, build according to user's
// configuration.
if (ShouldUseAresDnsResolver()) {
#if GRPC_ARES == 1 && defined(GRPC_POSIX_SOCKET_ARES_EV_DRIVER)
GRPC_EVENT_ENGINE_DNS_TRACE("PosixEventEngine:%p creating AresResolver",
this);
auto ares_resolver = AresResolver::CreateAresResolver(
@ -570,6 +571,7 @@ PosixEventEngine::GetDNSResolver(
}
return std::make_unique<PosixEventEngine::PosixDNSResolver>(
std::move(*ares_resolver));
#endif // GRPC_ARES == 1 && defined(GRPC_POSIX_SOCKET_ARES_EV_DRIVER)
}
GRPC_EVENT_ENGINE_DNS_TRACE("PosixEventEngine:%p creating NativeDNSResolver",
this);

Loading…
Cancel
Save