From ba3b362144aed10d7f3c9ed28575e295eee4f710 Mon Sep 17 00:00:00 2001 From: PoAn Yang Date: Wed, 18 Oct 2023 18:27:06 +1100 Subject: [PATCH] [YUNIKORN-2029] remove deprecated function (#674) * grpc WithInsecure Signed-off-by: PoAn Yang Closes: #674 Signed-off-by: Wilfred Spiegelenburg --- 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) }