fix helloworld example
diff --git a/examples/helloworld/greeter_client/main.go b/examples/helloworld/greeter_client/main.go
index fe882ae..1e02ab1 100644
--- a/examples/helloworld/greeter_client/main.go
+++ b/examples/helloworld/greeter_client/main.go
@@ -37,7 +37,7 @@
"log"
"os"
- pb "github.com/grpc/grpc-go/examples/helloworld"
+ pb "google.golang.org/grpc/examples/helloworld/helloworld"
"golang.org/x/net/context"
"google.golang.org/grpc"
)
@@ -49,7 +49,7 @@
func main() {
// Set up a connection to the server.
- conn, err := grpc.Dial(address)
+ conn, err := grpc.Dial(address, grpc.WithInsecure())
if err != nil {
log.Fatalf("did not connect: %v", err)
}
diff --git a/examples/helloworld/greeter_server/main.go b/examples/helloworld/greeter_server/main.go
index 793860e..ba985df 100644
--- a/examples/helloworld/greeter_server/main.go
+++ b/examples/helloworld/greeter_server/main.go
@@ -37,7 +37,7 @@
"log"
"net"
- pb "github.com/grpc/grpc-go/examples/helloworld"
+ pb "google.golang.org/grpc/examples/helloworld/helloworld"
"golang.org/x/net/context"
"google.golang.org/grpc"
)
diff --git a/examples/helloworld/proto/helloworld.pb.go b/examples/helloworld/helloworld/helloworld.pb.go
similarity index 100%
rename from examples/helloworld/proto/helloworld.pb.go
rename to examples/helloworld/helloworld/helloworld.pb.go
diff --git a/examples/helloworld/proto/helloworld.proto b/examples/helloworld/helloworld/helloworld.proto
similarity index 100%
rename from examples/helloworld/proto/helloworld.proto
rename to examples/helloworld/helloworld/helloworld.proto