*: pass WithInsecure to grpc.Dial for now

Related to https://github.com/coreos/etcd/issues/4299.
This commit is contained in:
Gyu-Ho Lee
2016-01-27 00:24:03 -08:00
parent 14255854d8
commit fa21946267
9 changed files with 27 additions and 14 deletions

View File

@ -92,7 +92,8 @@ func rangeCommandFunc(cmd *cobra.Command, args []string) {
ExitWithError(ExitBadFeature, fmt.Errorf("bad sort target %v", rangeSortTarget))
}
conn, err := grpc.Dial(endpoint)
// TODO: enable grpc.WithTransportCredentials(creds)
conn, err := grpc.Dial(endpoint, grpc.WithInsecure())
if err != nil {
ExitWithError(ExitBadConnection, err)
}