diff --git a/grpcutil/dns_resolver.go b/grpcutil/dns_resolver.go index d87c61a89..18f844deb 100644 --- a/grpcutil/dns_resolver.go +++ b/grpcutil/dns_resolver.go @@ -103,8 +103,8 @@ func parseTarget(target string) (host, port string, err error) { // Resolve creates a watcher that watches the SRV/hostname record resolution of the target. // -// First SRV record resolution is attempted for the specified service; if this fails, hostname record resolution is -// attempted instead. +// If service is not empty, watcher will first attempt to resolve SRV record. +// If that fails or service was empty, hostname record resolution is attempted instead. func (r *dnsResolver) Resolve(target, service string) (Watcher, error) { host, port, err := parseTarget(target) if err != nil {