From d3e3d3749a34c8acc13fa9f2c2aeed09a28e4e69 Mon Sep 17 00:00:00 2001 From: Junpei Tsuji Date: Thu, 30 Apr 2026 14:19:15 +0900 Subject: [PATCH] chore: update client to resolve deprecated format --- unary/client/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) }