Skip to content

Commit

Permalink
Make passthrouth resolver the default instead of dns (#1606)
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl authored Oct 20, 2017
1 parent de0cff5 commit 94f1917
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion clientconn.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ import (
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/keepalive"
"google.golang.org/grpc/resolver"
_ "google.golang.org/grpc/resolver/dns" // To register dns resolver.
_ "google.golang.org/grpc/resolver/dns" // To register dns resolver.
_ "google.golang.org/grpc/resolver/passthrough" // To register passthrough resolver.
"google.golang.org/grpc/stats"
"google.golang.org/grpc/transport"
)
Expand Down
3 changes: 1 addition & 2 deletions resolver/passthrough/passthrough.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
*/

// Package passthrough implements a pass-through resolver. It sends the target
// name without scheme back to gRPC as resolved address. It's for gRPC internal
// test only.
// name without scheme back to gRPC as resolved address.
package passthrough

import "google.golang.org/grpc/resolver"
Expand Down
2 changes: 1 addition & 1 deletion resolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var (
// m is a map from scheme to resolver builder.
m = make(map[string]Builder)
// defaultScheme is the default scheme to use.
defaultScheme = "dns"
defaultScheme = "passthrough"
)

// TODO(bar) install dns resolver in init(){}.
Expand Down

0 comments on commit 94f1917

Please sign in to comment.