From 828589360176e89ac46d92dcad9d9966760e1053 Mon Sep 17 00:00:00 2001 From: PoAn Yang Date: Thu, 12 Oct 2023 20:29:07 +0800 Subject: [PATCH] [YUNIKORN-2029] remove deprecated function Signed-off-by: PoAn Yang --- cmd/schedulerclient/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/schedulerclient/client.go b/cmd/schedulerclient/client.go index aa540cd62..0fbf773e3 100644 --- a/cmd/schedulerclient/client.go +++ b/cmd/schedulerclient/client.go @@ -27,6 +27,7 @@ import ( "github.com/apache/yunikorn-scheduler-interface/lib/go/si" "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" ) const ( @@ -35,7 +36,7 @@ const ( func main() { // Set up a connection to the server. - conn, err := grpc.Dial(address, grpc.WithInsecure()) + conn, err := grpc.Dial(address, grpc.WithTransportCredentials(insecure.NewCredentials())) if err != nil { log.Fatalf("did not connect: %v", err) }