From dea6444ad6d3d77bddf1d9648a11d93a940b9a90 Mon Sep 17 00:00:00 2001 From: Easwar Swaminathan Date: Fri, 30 Aug 2019 02:13:50 +0000 Subject: [PATCH] vets and comments --- backoff.go | 2 +- backoff/backoff.go | 2 +- resolver/dns/dns_resolver.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backoff.go b/backoff.go index af58980a51f..01758ecfc5e 100644 --- a/backoff.go +++ b/backoff.go @@ -44,7 +44,7 @@ type BackoffConfig struct { } // ConnectParams defines the parameters for connecting and retrying. Users are -// encouraged to use this instead of BackoffConfig the type defined above. See +// encouraged to use this instead of the BackoffConfig type defined above. See // here for more details: // https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md. // diff --git a/backoff/backoff.go b/backoff/backoff.go index d59b3e60802..3bb63f2ed14 100644 --- a/backoff/backoff.go +++ b/backoff/backoff.go @@ -39,7 +39,7 @@ type Config struct { } // DefaultConfig is a backoff configuration with the default values specfied -// in https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md. +// at https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md. // // This should be useful for callers who want to configure backoff with // non-default values only for a subset of the options. diff --git a/resolver/dns/dns_resolver.go b/resolver/dns/dns_resolver.go index a52ea08e470..cea099de650 100644 --- a/resolver/dns/dns_resolver.go +++ b/resolver/dns/dns_resolver.go @@ -131,7 +131,7 @@ func (b *dnsBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts bc.MaxDelay = b.minFreq d := &dnsResolver{ freq: b.minFreq, - backoff: backoff.Exponential{bc}, + backoff: backoff.Exponential{Config: bc}, host: host, port: port, ctx: ctx,