From 021bb218747f9fc9423195148585ee9fed136a96 Mon Sep 17 00:00:00 2001 From: Junpei Tsuji Date: Thu, 7 May 2026 13:08:50 +0900 Subject: [PATCH] chore(wait-for-ready): update client to resolve deprecated format --- wait-for-ready/client/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wait-for-ready/client/main.go b/wait-for-ready/client/main.go index b0a3406..26f1ad0 100644 --- a/wait-for-ready/client/main.go +++ b/wait-for-ready/client/main.go @@ -7,6 +7,7 @@ import ( pb "github.com/jun06t/grpc-sample/wait-for-ready/proto" "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" ) const ( @@ -14,8 +15,8 @@ const ( ) func main() { - conn, err := grpc.Dial(address, - grpc.WithInsecure(), + conn, err := grpc.NewClient(address, + grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithDefaultCallOptions( grpc.WaitForReady(true), ),