Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
eshitachandwani committed Dec 27, 2024
1 parent fb23cca commit ef927ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clientconn.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@ func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *
// At the end of this method, we kick the channel out of idle, rather than
// waiting for the first rpc.
//
// WithTargetResolutionEnabled in `grpc.Dial` ensures that it preserves
// behavior: when default scheme passthrough is used, skip hostname
// resolution, when "dns" is used for resolution,
// perform resolution on the client.
// WithTargetResolutionEnabled dial option in `grpc.Dial` ensures that it
// preserves behavior: when default scheme passthrough is used, skip
// hostname resolution, when "dns" is used for resolution, perform
// resolution on the client.
opts = append([]DialOption{withDefaultScheme("passthrough"), WithTargetResolutionEnabled()}, opts...)
cc, err := NewClient(target, opts...)
if err != nil {
Expand Down

0 comments on commit ef927ce

Please sign in to comment.