fix helloworld example

This commit is contained in:
iamqizhao
2015-08-27 19:20:52 -07:00
parent 158260f5a2
commit 72a3b4a331
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"
) )