diff --git a/unary/client/main.go b/unary/client/main.go index a438921..dd8eea8 100644 --- a/unary/client/main.go +++ b/unary/client/main.go @@ -7,6 +7,7 @@ import ( pb "github.com/jun06t/grpc-sample/unary/proto" "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" ) const ( @@ -14,7 +15,10 @@ const ( ) func main() { - conn, err := grpc.Dial(address, grpc.WithInsecure()) + conn, err := grpc.NewClient( + address, + grpc.WithTransportCredentials(insecure.NewCredentials()), + ) if err != nil { log.Fatal(err) }