Merge pull request #311 from iamqizhao/master

fix helloworld example
This commit is contained in:
Qi Zhao
2015-08-27 19:22:51 -07:00
4 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ import (
"log" "log"
"os" "os"
pb "github.com/grpc/grpc-go/examples/helloworld" pb "google.golang.org/grpc/examples/helloworld/helloworld"
"golang.org/x/net/context" "golang.org/x/net/context"
"google.golang.org/grpc" "google.golang.org/grpc"
) )
@ -49,7 +49,7 @@ const (
func main() { func main() {
// Set up a connection to the server. // Set up a connection to the server.
conn, err := grpc.Dial(address) conn, err := grpc.Dial(address, grpc.WithInsecure())
if err != nil { if err != nil {
log.Fatalf("did not connect: %v", err) log.Fatalf("did not connect: %v", err)
} }

View File

@ -37,7 +37,7 @@ import (
"log" "log"
"net" "net"
pb "github.com/grpc/grpc-go/examples/helloworld" pb "google.golang.org/grpc/examples/helloworld/helloworld"
"golang.org/x/net/context" "golang.org/x/net/context"
"google.golang.org/grpc" "google.golang.org/grpc"
) )