From 2a312458e6bd0d3fd9ffccee9b6906b6e753bb8f Mon Sep 17 00:00:00 2001 From: Doug Fawley Date: Wed, 20 Oct 2021 14:01:46 -0700 Subject: [PATCH] client: don't force passthrough as default resolver (#4890) --- clientconn.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/clientconn.go b/clientconn.go index eacf5fd8fccf..5a9e7d754fe2 100644 --- a/clientconn.go +++ b/clientconn.go @@ -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