Skip to content

Commit

Permalink
client: don't force passthrough as default resolver (#4890)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfawley authored Oct 20, 2021
1 parent bd0f881 commit 2a31245
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions clientconn.go
Original file line number Diff line number Diff line change
Expand Up @@ -1633,9 +1633,6 @@ func (cc *ClientConn) parseTargetAndFindResolver() (resolver.Builder, error) {
// scheme, except when a custom dialer is specified in which case, we should
// always use passthrough scheme.
defScheme := resolver.GetDefaultScheme()
if cc.dopts.copts.Dialer != nil {
defScheme = "passthrough"
}
channelz.Infof(logger, cc.channelzID, "fallback to scheme %q", defScheme)
canonicalTarget := defScheme + ":///" + cc.target

Expand Down

0 comments on commit 2a31245

Please sign in to comment.