Skip to content

Commit

Permalink
Update grpcutil/dns_resolver.go
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Štibraný <peter.stibrany@grafana.com>
  • Loading branch information
aknuds1 and pstibrany committed Dec 23, 2021
1 parent 1cfbea7 commit 357ae34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grpcutil/dns_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 357ae34

Please sign in to comment.